Skip to content

Latest commit

 

History

History
44 lines (26 loc) · 943 Bytes

README.md

File metadata and controls

44 lines (26 loc) · 943 Bytes

Fullstack assessment - Backend

Techonologies

  • NestJS
  • TypeORM
  • TypeScript
  • Class Validator for DTOs
  • PostgreSQL
  • Docker
  • Jest
  • PgAdmin

Requirements

Project was developed using node 20.9.0, so it's recommended to use the same version. If you have nvm installed, you can run:

nvm use

And the install dependencies:

npm install

The server will run using docker. But you can also run the tests from outside docker:

npm run test

Environment variables

Rename the .env.example file to .env.

Database

Project is dockerized, so you need to have Docker installed on your machine. Then run:

docker-compose up --build

That will create the database and run the migrations, as well as running the backend server.

Backend API runs on port 3001.

PgAdmin runs on port 5050, and the credentials are listed in docker-compose.yml file.

Access the panel here: http://localhost:5050/