Prerequisites
Before you begin, make sure you have the following installed:Node.js 20+
Required for both backend and frontend tooling.
PostgreSQL 16+
The primary database. Must be running before you start the backend.
npm 10+
Used to install and run backend dependencies.
pnpm 9+
Used to install and run frontend dependencies.
Installation
Configure and start the backend
Install backend dependencies, copy the environment file, run database migrations and seeders, then start the dev server.Open
.env and fill in your PostgreSQL connection details. See Environment Setup for a full variable reference.The backend starts on http://localhost:3001. Keep this terminal open while you set up the frontend.
Configure and start the frontend
In a new terminal, install frontend dependencies and start the Next.js dev server.
The frontend starts on http://localhost:3000 and sends all API requests to
http://localhost:3001/api/v1. No frontend .env configuration is needed.Log in with seed credentials
Open http://localhost:3000 in your browser. Use any of the seeded accounts below to log in and explore TaskFlow Pro with different permission levels.
| Name | Password | Role | |
|---|---|---|---|
| Admin User | admin@taskflow.com | Admin123! | Admin |
| María García | maria@taskflow.com | Maria123! | Project Manager |
| Carlos López | carlos@taskflow.com | Carlos123! | Developer |
Explore the API
Once the backend is running, the interactive Swagger UI is available at:POST /api/auth/login with a seed credential, copy the returned JWT token, and use the Authorize button in the Swagger UI.