This is the backend API for TaskFlow, a real-time Kanban task management system. Built with Node.js, Express, and Prisma ORM.
- Runtime: Node.js
- Framework: Express.js
- Database: PostgreSQL
- ORM: Prisma
- Authentication: JWT (HttpOnly Cookies, Cross-Site Supported)
- Documentation: Swagger (OpenAPI)
- Node.js (v18+)
- PostgreSQL database
-
Install dependencies:
npm install
-
Environment Variables (.env provided): The
.envfile is already included in this submission for your convenience. It is pre-configured to connect to the provided local database.(If needed, the expected variables are:
PORT,DATABASE_URL,JWT_SECRET,JWT_REFRESH_SECRET,FRONTEND_URL) -
Database Setup: Run Prisma migrations to generate tables:
npx prisma migrate dev
-
Seed Database: To create the default Admin account (
admin@taskflow.dev/Admin@12345):npm run seed:admin
-
Start Server:
npm run dev
Once the server is running, you can access the interactive Swagger API documentation at:
- Local:
http://localhost:5000/api/docs - Production:
https://<your-production-url>/api/docs
npm run dev- Starts development server with hot-reloadnpm run start- Starts production servernpm run seed:admin- Seeds the database with the initial Admin user