Skip to content

Latest commit

 

History

History
71 lines (46 loc) · 1.52 KB

README.md

File metadata and controls

71 lines (46 loc) · 1.52 KB

Todo App Server-Side

A dockerized full-stack Todo application featuring a Node.js backend, PostgreSQL database with Prisma ORM, and JWT-based authentication for secure user sessions.


image

Features

  • 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.

Prerequisites

Ensure you have the following installed:

  • Docker Desktop
  • Node.js (v20+)
  • npm

Installation

  1. Clone the repository:

    git clone https://github.com/Anshgrover23/todo-app-server-side.git
    cd todo-app-server-side
  2. Generate Prisma Client:

    npx prisma generate
  3. Build Docker Images:

    docker compose build
  4. 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
  1. Start Docker Containers:

    docker compose up
  2. Access the App

This project is licensed under the MIT License.