Skip to content

felipeLeao18/cargon-tech-challenge

Repository files navigation

CargOn

Tech challenge

Install NPM packages

$ npm i

Setup your env keys

  • Create a .env file and copy the .env.example file. You can change the DATABASE_URL based on your machine.

Create a local database with docker compose

$ docker-compose -f start-db-locally.yml up

Run migrations

$ npx prisma migrate dev

Run the app

$ npm run dev

Running tests

  • Note: this step requires Docker Compose to be installed on your computer

Start a local database memory server with Docker Compose

$ npm run setup-test
  • note: The command above will already create your migrations on your memory server db

To run all test files

$ npm run test

To run a specific test file

$ npm run test /filepath/

⚠️ ALERT

After terminating the tests, drop the container containing the memory server Db

$ npm run docker:down

Docs

run your app

Navigate to http://localhost:port/api-docs

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published