A dockerized full-stack Todo application featuring a Node.js backend, PostgreSQL database with Prisma ORM, and JWT-based authentication for secure user sessions.
- JWT Authentication for user security.
- CRUD Operations: Add, retrieve, update, and delete todos.
- PostgreSQL with Prisma ORM for robust database management.
- Dockerized setup for streamlined deployment.
Ensure you have the following installed:
- Docker Desktop
- Node.js (v20+)
- npm
-
Clone the repository:
git clone https://github.com/Anshgrover23/todo-app-server-side.git cd todo-app-server-side
-
Generate Prisma Client:
npx prisma generate
-
Build Docker Images:
docker compose build
-
Set Up PostgreSQL Migrations:
-
To create and apply initial migrations:
docker compose run app npx prisma migratedev--name init
-
To apply existing migrations:
docker compose run app npx prisma migrate deploy
-
Start Docker Containers:
docker compose up
-
Access the App
- Open http://localhost:8383 in your browser (or http://localhost:8383 if configured differently) to access the frontend. Register, log in, and manage your todo list!
This project is licensed under the MIT License.