Giter Site home page Giter Site logo

medi-drone's Introduction

Medi-Drone 1.0.0

Introduction

Welcome to Medi-Drone-1.0.0. This project is intended to manage a fleet of drones that are used to transport medication. You can find instructions to build and run the project below.

Build

The project was tested in the following environment.

  • Java Version - openjdk-17.0.10
  • Maven Version - 3.9.6
  • Operating System - MacOS Sonoma 14.3
  • Database - H2

To build the project, run the following command in the current directory

mvn clean install

Test coverage reports can be found at drone/target/site/jacoco/index.html

Dockerfile is available if you want to create a docker image. Use the following command to create the image and start the container.

docker build -t medi-drone:latest .

docker run -p 8080:8080 medi-drone:latest

Run Locally

To start the application, run the following command in the current directory

mvn spring-boot:run

Testing

At the start, data for 10 drones and 5 medications are available in the database. To test the functionality, send GET requests to the following 2 endpoints.

http://localhost:8080/drones

http://localhost:8080/medications

Postman collection with all the requests that can be used to manage the system is available in Medi Drone - Imesh.postman_collection.json. Please import the collection to postman to test the system. Details of all 16 endpoints are available in the Open API file Medi-DroneAPI-1.0.0.yaml. Please use https://editor.swagger.io/ to view the Open API file.

Assumptions

Following are the assumptions made when making design decisions of the system.

  • The fleet starts with 10 drones and 5 medications. But new drones and medications can be added as required.
  • API security was considered as out of scope for this task.
  • New drones must be registered in IDLE state, and battery capacity and weight limit must be > 0.
  • Drone state changes follow a hierarchy (eg: LOADED state must come after LOADING state).
  • For the state change from DELIVERING -> DELIVERED, drone must be unloaded first.
  • State changes are done explicitly through state change endpoint (Not changed automatically with loading/unloading).
  • Data is not persisted through restarts of the system.

Please contact me through [email protected] if you have any trouble in building or running the project. Thank you!


medi-drone's People

Contributors

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