Skip to content

An API for a logistics company, Gbewa Kia ("Bring it fast") that provides authentication, package sending, package tracking and automatic package updates

License

Notifications You must be signed in to change notification settings

sudodeo/gbewa-kia

Repository files navigation

Gbewa Kia API

An API for a logistics company, Gbewa Kia ("Bring it fast") that provides authentication, package sending, package tracking and automatic package updates.

Documentation

The API documentation can be found here

Installation

  1. Clone the repository
  2. Run npm install to install dependencies
  3. Use this command to copy the .env.example file to .env and set the environment variables
cp .env.example .env
  1. Run npm run dev to start the server in development mode

Note: You need to have a PostgreSQL database running on your machine. You can use Docker to run a PostgreSQL container. Use the following command to run a PostgreSQL container:

docker run --name gbewa-kia-db -e POSTGRES_USER=gbewa-kia -e POSTGRES_PASSWORD=gbewa-kia -e POSTGRES_DB=gbewa-kia -p 5432:5432 -d postgres

Running with Docker

  1. Run the following command to build the Docker image
docker build -t gbewa-kia-api .
  1. Run the following command to run the Docker container
docker run --name gbewa-kia-api -p 8989:8989 --env-file .env -d gbewa-kia-api

OR you can use the docker-compose.yml file to run the Docker container. Run the following command to start the container (you need to have Docker Compose installed)

docker compose build
docker compose up -d

Technologies

  • Node.js
  • Express
  • TypeScript
  • PostgreSQL
  • JWT
  • Postman
  • Docker

Author

License

This project is open source and available under the MIT License.

About

An API for a logistics company, Gbewa Kia ("Bring it fast") that provides authentication, package sending, package tracking and automatic package updates

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published