hamza-hadj-aissa / ra9mana-bejaia

This project is a backend API of a system that optimizes the process of managing ships and decks in the harbour

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Harbour Optimization | GDSC ESTIN - Bejaia HACKATHON

Description

This project is a backend API of a system that optimizes the process of managing ships and decks in the harbour

Setup

To run this project, you need to have Node.js installed on your machine. Clone the repository and run the following commands:

  1. Install the dependencies:

Setup

To run this project, you need to have Node.js installed on your machine. Clone the repository and run the following commands:

  1. Install the dependencies:
npm install
  1. Run postgeSQL database instance with docker:
docker-compose up -d

You can change these values in the '.env.development' file.

  1. Run this command to:
  • Run the migrations
  • Seed the database with some data
  • Start the application
npm run start:migrate:dev

Architecture

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.

About

This project is a backend API of a system that optimizes the process of managing ships and decks in the harbour


Languages

Language:TypeScript 82.8%Language:Dart 14.9%Language:Dockerfile 1.4%Language:JavaScript 0.9%