GithubHelp home page GithubHelp logo

amadeus-flight-api's Introduction


Flight Search Api

Table of Contents
  1. About The Project
  2. Getting Started
  3. Usage
  4. Swagger Docs
  5. License
  6. Contact

About The Project

Flight Search Api developed for Amadeus Travel to Future Program. A relational Database is used in this project. Postgresql is the selected database. Before starting the application, first run the docker-compose.yml to start database server on docker container.

DATABASE CREDENTIALS:
Username: admin
Password: admin

Navigate to http://localhost:5050/browser/ to access PG_ADMIN PG_ADMIN CREDENTIALS
Username: [email protected]
Password: admin

MapStruct is used to map DTOs to entities and nice versa.
Lombok is used for removing boiler-plate code
Exception Handling is done
Auditing information is avaliable in entities.
QueryDsl is used for extended search on flights integrated with JPA repository

(back to top)

Security

System security is done via JWT Bearer tokens. Before doing any operation, user should obtain an token like following: login After that, pass this token with 'Bearer ' prefix to Authorization header on each request. Role based authantication is provided but all the api urls are accessible by any role. You can change it from security config and api urls if needed.

(back to top)

Built With

  • Spring

  • Postgres

  • Docker

(back to top)

Getting Started

Prerequisites

  • java 17+
  • docker

Installation

Clone the repository

git clone https://github.com/numankaf/amadeus-flight-api.git

For backend:

  1. Go to Directory

    cd flightsearchapi
  2. Run Docker Containers

    docker-compose up -d
  3. Install Dependicies

    mvn clean install
  4. Run the application

    mvn spring-boot:run

(back to top)

Usage

login

getAirports

getFlights

searchFlights

crud

Swagger Docs

Navigate to http://localhost:8080/swagger-ui/index.html to see the Swagger docs.

crud

License

Distributed under the Apache-2.0 License. See LICENSE.txt for more information.

(back to top)

Contact

Numan Kafadar - [email protected]

Project Link: https://github.com/numankaf/ICESHU4

(back to top)

amadeus-flight-api's People

Contributors

numankaf avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.