Powered by Nest.js and Prisma. The most typesafe backend you'll ever see.
The Postman collections includes sample responses.
Important
For login, you can pick a random email from the users table (by using Prisma Studio or PGAdmin) and use random letters as the password to login and receive the token. Then, use the token in your Requests by changing the "Authorization" to Bearer and the token to the response.
Installs the dependencies.
$ yarnIf you're not using Docker, you can skip this step and setup your database manually. Mind that we're using PostgreSQL.
# start the container
$ docker-compose up -d
# Database URL: postgresql://postgres:postgres@localhost:5434/?schema=publicYeah, it's important. Trust me. Also, avoid port 3000.
Note
If you're using docker (as shown in the previous step, you can use the following URL):
DATABASE_URL=postgresql://postgres:postgres@localhost:5434/?schema=publicThis will create the tables and seed the database with some data.
$ yarn prisma db push # Syncs the Prisma schema to the database
$ yarn prisma db seed # Seeds the database (see seed.ts)This will open a web interface to interact with the database. Think of it as a lightweight PGAdmin.
$ yarn prisma studio# watch mode
$ yarn run start:dev