austospumanto / pp-backend

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Requirements

  1. NodeJS
  2. TypeScript
  3. Docker

Setup

  1. For the repository, and clone it to your local machine.
  2. Run docker-compose up -d to start development and tests databases. Feel free to adjust the docker-compose.yml file to your needs if the specified ports (5433, and 5434) are already in use.
  3. Run npm install to install all the dependencies.
  4. Run npm run prisma:migrate:dev to apply the migrations to the development database.
  5. Run npm run dev to start the development server.

Testing

  1. Make sure you have the test database running (see Setup#2).
  2. Run npm run prisma:migrate:test to apply the migrations to the test database.
  3. Run npm run test to run the tests.

Tasks

Search for TODO: in the code to find the tasks that need to be completed. Hint: Start from the ones defined in .env and .env.test

About


Languages

Language:TypeScript 94.7%Language:HTML 2.8%Language:JavaScript 2.5%