This project is an internship onboarding experience designed to provide hands-on learning about the fundamental concepts and practical steps involved in building a database from scratch.
-
Node.js: Used for running the backend application.
Recommended version:v23.6.0
. -
PostgreSQL: The database for storing and retrieving application data.
Current version used:17.2
. -
Docker: To simplify database setup and management by running PostgreSQL in a containerized environment.
-
Prisma: ORM for schema and database management.
Installed vianpm
. -
Nodemon: For automatic reloading during development.
-
Lint: For automatic reloading during development.
-
Nodemon: For automatic reloading during development.
- Ensure that Node.js and Prisma is installed (
node --version
andnpx prisma -version
to verify). - Install Docker to run the PostgreSQL container. Check if Docker is running (
docker --version
). - Clone the repository:
-
Install dependencies:
npm install
-
Start the PostgreSQL database using Docker Compose:
docker-compose up -d
-
Generate Prisma Client
npx prisma generate
-
Run Migrations (if necessary) In case of any changes to the Prisma schema
npx prisma migrate dev