The Travel App is a web application that allows users to manage cities, users, tickets, races, and book/buy tickets. The app is secured using JWT token authentication and logs are saved in a separate microservice by sending data using Kafka.
- Docker
- Docker Compose
To start the project, follow these steps:
- Clone the repository:
git clone https://github.com/kreker1207/travelapp.git
cd travel
- Build and run the project using Docker Compose:
docker-compose up
-
Connect to db in your IDE
-
Once the containers are up and running, you can access the app at
http://localhost:8000
.
To test the various routes and perform CRUD operations you can use swagger - where showd examples of API endpoints.
The Travel App uses JWT token authentication to secure the routes. To access restricted routes, you need to include the JWT token in the Authorization
header of the requests. You can obtain the token by making a POST
request to the /login
endpoint with valid credentials.
- Some routes are restricted and can only be accessed by logged-in users.
- Certain routes can only be accessed by admins.