Git Product home page Git Product logo

delivery's Introduction

README

What is this repository for?

  • delivery ======== REST API that receives a simple Map with directions between points and gives you the shortest way calculating the price based on autonomy and price of gas

  • Why Neo4j, SpringData and Jetty? Because the easy horizontal scalability of these frameworks and Neo4j fits in the routing problem like a charm!

  • 1.0

How do I get set up?

  • Summary of set up - You will need a Java7, Maven 3, Eclipse
  • Dependencies - It is all inside the pom.xml, feel free to look at!
  • Database configuration - It is build with a embbeded database. Next step here is to put a RestGraphDatabase Server in some cloud around the world
  • How to run tests - mvn clean install
  • Deployment instructions - mvn jetty:run

Contribution guidelines

  • Writing tests - Feel free to contribute
  • Code review - Feel free to contribute
  • Other guidelines - Feel free to help with guidelines

Who do I talk to?

  • Repo owner or admin josemanzoli
  • Other community or team contact Well, it`s just me for now!

How can I use the Rest API?

Using curl to Triangle Service

Using curl to Delivery Service

First, save the Map

  • Curl example: curl -X PUT -H "Content-Type: application/json" -H "Accept: application/json" -d '{"stateName": "SP", "routes": [{"from" : "A", "to":"B", "distance":10.0},{"from" : "B", "to":"D", "distance":15.0},{"from" : "A", "to":"C", "distance":20.0},{"from" : "C", "to":"D", "distance":30.0},{"from" : "B", "to":"E", "distance":50.0},{"from" : "D", "to":"E", "distance":30.0}]}' http://localhost:8080/deliveryService/saveMap

Then see if the Map is saved

and the last thing and most important, get your shortest path

If you want to clean up the database use this

Using an app plugin for Chrome called PostMan, follow the screenshots!

  • classify the Triangle classifyTriangleService

  • Delivery services

  • First, save the Map saveMap

  • Then see if the Map is saved FindByState

  • and the last thing and most important, get your shortest path getShortestPath

  • If you want to clean up the database use this removeCities

delivery's People

Contributors

josemanzoli avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

maheshvaikri

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.