Skip to content

Latest commit

 

History

History
43 lines (29 loc) · 843 Bytes

File metadata and controls

43 lines (29 loc) · 843 Bytes

Installation

$ pnpm install
pnpm dlx prisma generate
pnpm dlx prisma db push

Seed the database (this will create admin user)

pnpm dlx prisma db seed

Configuration

Copy the .env.example file to .env and fill in the necessary values.

In case of using mongoDB with Docker or desktop

  • I had problems doing this, so I had to use the mongoDB Atlas service.
  • Could have used mongoose ofc, but I wanted to try Prisma with MongoDB.
  • It has something to do with MongoDB Replica Issue (wasted hours with this trying to create a single docker-compose 🥲)

Running the app

# development
$ pnpm run start

# watch mode
$ pnpm run start:dev

# production mode
$ pnpm run start:prod

License

Nest is MIT licensed.