Clone this repo :
git clone https://github.com/masoudei/nodejs-typescript-express-prisma-api.git
Install node modules :
npm install
Build typescript code :
npm run build
Run project for development :
npm run dev
You need a postgres database server running to connect to (local docker):
docker run --name a-postgres-db -p 5432:5432 -e POSTGRES_PASSWORD=password -d postgres
npx prisma init
Initialize and generate database schema in postgres :
npx prisma db push