Skip to content

kreker1207/travelapp

Repository files navigation

Travel App

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.

Prerequisites

  • Docker
  • Docker Compose

Getting Started

To start the project, follow these steps:

  1. Clone the repository:
git clone https://github.com/kreker1207/travelapp.git
cd travel
  1. Build and run the project using Docker Compose:
docker-compose up
  1. Connect to db in your IDE

  2. Once the containers are up and running, you can access the app at http://localhost:8000.

Usage

Postman/Swagger

To test the various routes and perform CRUD operations you can use swagger - where showd examples of API endpoints.

Authentication

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.

Route Access

  • Some routes are restricted and can only be accessed by logged-in users.
  • Certain routes can only be accessed by admins.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages