An API for a logistics company, Gbewa Kia ("Bring it fast") that provides authentication, package sending, package tracking and automatic package updates.
The API documentation can be found here
- Clone the repository
- Run
npm install
to install dependencies - Use this command to copy the
.env.example
file to.env
and set the environment variables
cp .env.example .env
- 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
- Run the following command to build the Docker image
docker build -t gbewa-kia-api .
- 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
- Node.js
- Express
- TypeScript
- PostgreSQL
- JWT
- Postman
- Docker
This project is open source and available under the MIT License.