This project is a backend API of a system that optimizes the process of managing ships and decks in the harbour
To run this project, you need to have Node.js installed on your machine. Clone the repository and run the following commands:
- Install the dependencies:
To run this project, you need to have Node.js installed on your machine. Clone the repository and run the following commands:
- Install the dependencies:
npm install
- Run postgeSQL database instance with docker:
docker-compose up -d
You can change these values in the '.env.development' file.
- Run this command to:
- Run the migrations
- Seed the database with some data
- Start the application
npm run start:migrate:dev
The project is divided into the following modules:
- App: Contains the application logic.
- Database: Contains the database logic. (Prisma ORM)
- Auth: Contains the authentication logic.
- AuthTokens: Contains the logic to manage the refresh tokens and access tokens.
- Hashing: Contains the logic to hash the user password.
- Logger: Contains the logic to log the application.
- Decks: Contains the logic to manage the decks.
- Ships: Contains the logic to manage the ships.
- Trips: Contains the logic to manage the trips.