By the end of this guide you will have a fully functional Corpointa development environment running on your local machine, connected to a backend API, and ready for you to sign in and explore every module. The entire process — from cloning the repository to seeing the login screen — takes fewer than five minutes on a standard internet connection.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/EricMartinez758/corpointa-frontend/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites
Before you begin, make sure the following are available on your machine:
- Node.js ≥ 18 — Download from nodejs.org
- pnpm — Install globally with
npm install -g pnpmif not already present - A running Corpointa backend — The frontend expects a REST API to be reachable. If no
VITE_API_URLis set, the API client defaults tohttp://localhost:4000.
Install Dependencies
Install all project dependencies using pnpm:pnpm resolves and links the full dependency graph, including Vite, React 19, TanStack Router, TanStack Query, Radix UI, and all other packages declared in
package.json.Configure Environment Variables
Copy the provided example environment file and update it for your setup:The Replace
.env.example file contains only the VITE_CLERK_PUBLISHABLE_KEY placeholder. If your backend is not at the default http://localhost:4000, add VITE_API_URL manually. Open .env in your editor:http://localhost:4000 with the actual URL of your Corpointa backend if it is hosted elsewhere (e.g., https://api.corpointa.example.com). If VITE_API_URL is omitted, the API client defaults to http://localhost:4000.Run Tests (Optional)
Corpointa uses Vitest with a Playwright browser provider. If you want to run the test suite before starting the dev server, first install the Chromium browser dependency, then execute the tests:This runs all tests headlessly in Chromium. You can skip this step if you just want to launch the application.
Start the Development Server
Launch the Vite dev server:Vite will start and print output similar to the following:Open http://localhost:5173 in your browser to see the Corpointa login screen.
Sign In
On the login screen, enter your credentials:
- Cédula — Your national ID number registered in the system
- Password — Your account password
Using Clerk authentication instead? If your deployment uses the Clerk-based auth flow, add your Clerk publishable key to Then navigate to
.env before starting the dev server:/clerk/sign-in instead of the default login route. See the Configuration guide for full details.Building for Production
When you are ready to deploy, compile an optimised production bundle:tsc -b for type-checking followed by vite build. The compiled assets are written to the dist/ directory.
To preview the production build locally before deploying:
vite preview serves the contents of dist/ at http://localhost:4173 so you can validate the build before shipping. The included netlify.toml configures a catch-all redirect (/* → /index.html, HTTP 200) so that client-side routes resolve correctly on Netlify and any other SPA-compatible host.