This project implements a public bus transportation booking API server.
- Golang
- PostgreSQL
- Sign up
- Login
- View all trips
- Login
- Add bus for a Trip
- See all buses stored in the db
- Create a trip
- Cancel a trip
- View all trips
- View bookings for all trips
- Book a seat on a trip
- View bookings
- Delete their bookings
- Filter trips by origin
- Filter trips by destination
- Specify seat numbers when making a booking
- Clone the repository
https://github.com/Kellswork/Wayfarer.git. - Navigate to the project directory.
- cd into the folder
- Create a
.envfile with the required configurations. - In your terminal, run
go getto install dependencies. - Run
go run cmd/main.goto get the server running on your local machine.
goose postgres "<db-connection-string>" up