davieoba / sage-logistics-company

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

https://github.com/CodemaniaNG/backend-assessment/blob/main/README.md

Step 1 - Setup

  • You want to install the required packages, navigate to the base folder and run yarn dev, this will install all the required packages
  • Next start run the docker compose up to start-up the postgres on port (5432), server on port (8100) and adminer on port (8100)
  • Run generate script yarn run generate
  • Run migration script yarn run migrate
  • Seed the DB yarn run db:seed
  • Create your .env by following the .env.example in the repo

step 2 - Creating an account

Create an account from the api endpoint {{base_url}}/auth/register copy the generated [api-key] and include it to the header["Authorization"] = [api-key] of subsequent request.

  • api to create an account and generate api key
  • api to create a package
  • api to get all packages
  • api to update a package
  • api to retrieve a package
  • add rate limiting
  • api to track a package
  • Restricted routes
  • Protected routes

About


Languages

Language:TypeScript 99.5%Language:Dockerfile 0.5%