Giter Site home page Giter Site logo

flights-ms's Introduction

Flight Microservice

The Flight Microservice is a Spring Boot application that provides cargo and baggage data as well as flight information.

Table of Contents

Technologies

  • Spring Boot 2.7.14
  • Java 11

Prerequisites

Before you begin, ensure you have met the following requirements:

  • Java 11 is installed.
  • Maven is installed.
  • You have basic knowledge of Spring Boot and RESTful APIs.

Getting Started

  1. Clone this repository.
  2. Navigate to the project root: cd flights-ms.
  3. Build the project: mvn clean install.
  4. Run the application: java -jar target/flights-ms.jar.

Usage

The Flight Microservice provides endpoints to retrieve cargo and baggage data as well as flight information. You can interact with these endpoints using HTTP requests.

Endpoints

  • GET /cargo: Retrieve cargo data and baggage data.
  • GET /flight: Retrieve flights data.

Example usage:

  • GET /cargo/weight
  • GET /flights/departing

Configuration

You can configure the application by modifying the application.properties file located in the src/main/resources directory.

Contributing

Contributions are welcome! If you'd like to contribute, please follow these steps:

  1. Fork the repository.
  2. Create a new branch: git checkout -b feature/your-feature-name.
  3. Make your changes and commit them: git commit -m "Add your feature".
  4. Push to the branch: git push origin feature/your-feature-name.
  5. Create a pull request describing your changes.

Things To Do

  • I've seperated specification form implementation in both service and repository level so this app can be easily extendable; with this feature in the future development we can add mongodb support instead of reading data from json file ,and we can simply have a different implementation for repository specification layer and then when we try to autowire the repository we specify to use mongodb implementation instead.
  • My code can use the benefits of unit tests and also load tests to make sure this code is future proof.
  • Exception handling and logging needs refactoring.

License

This project is licensed under the MIT License.

flights-ms's People

Contributors

pedramx 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.