/punching-in-back

An API for you to manage your applications to job offers!

Primary LanguageTypeScript

Punching In

📋 Description

An app for you to manage yours applications to job offers!

💻 Technologies

  • Node.js
  • Typescript
  • JWT
  • PostgreSQL
  • Prisma
  • Jest
  • Supertest

🏁 Running the application

Make sure you have the latest stable version of Node.js and npm running locally.

First, clone this repository:

git clone https://github.com/barbararech/punching-in-back

Inside the folder, run the following command to install the dependencies.

npm install

Run the following command to install the dev dependencies.

npm install dotenv-cli jest prisma supertest ts-jest ts-node typescrypt nodemon eslint @faker-js/faker @types/bcrypt @types/cors @types/dotenv @types/express @types/jest @types/joi @types/node @types/supertest -D

Create database

npx prisma migrate dev

Then, run

npm start

to open the project on localhost in your browser.

For the integration test

Inside the back-end folder, run the following command to start the tests.

npm run test:integration

For the unit test

Inside the back-end folder, run the following command to start the tests.

npm run test:unit

🛑 Don't forget to set the environment variables!