The Bus Ticketing Platform is a web application that allows users to manage bus tickets, perform transactions, and manage their wallets.
- Node.js (version 14 or higher)
- Yarn package manager
- Docker and Docker Compose (for Docker setup)
-
Clone the repository:
git clone https://github.com/sogunshola/express-bus-ticketing-backed.git cd express-bus-ticketing-backed
-
Install dependencies:
yarn install
-
Copy the
.env.example
file to.env.development.local
:cp .env.example .env
-
Run migrations and seed the database:
yarn migrate:run yarn seed:run
-
Clone the repository:
git clone https://github.com/sogunshola/express-bus-ticketing-backed.git cd express-bus-ticketing-backed
-
Build the Docker image:
docker-compose build
-
Run migrations and seed the database:
docker-compose run web yarn migrate docker-compose run web yarn seed
-
To start the server locally:
yarn dev
-
To start the server using Docker:
docker-compose up
-
Access the application at http://localhost:3000
The Postman API documentation can be found in the API Documentation file.