- npm init -y
- Starting package npm install:
npm install express @prisma/client cors dotenv tsconfig-paths
- Starting package for npm dev depencies:
npm install -D prisma typescript ts-node nodemon @types/express @types/node @types/cors @types/node
- Setup the package.json for scripts
- Add tsconfig.json (this is pre-defined but more likely a configuration for TypeScript rules)
- Create the .env file for secret credentials
- Setup the Source folder structures (controllers, repositories, routes, services)
- Setup Prisma ORM
- Setup PostgreSQL (Choose pgAdmin 4 - PostgreSQL for local development and Neon for Cloud/Online Database):
postgresql://{username}:{password}@localhost:5432/{databaseName}?schema=public
- Happy Coding!
npm run dev