Giter Club home page Giter Club logo

commute-calculator-api's Introduction

Code Climate Build Status Coverage Status

Commute Calculator Api

A REST api designed to parse and transverse a public transportation graph and make recommendations on where a person or group of people should live based on supplied parameters. This api will back a commute calculator ui that will supply to the user geometrical definitions of areas of the a city based on various parameters that the user inputs.

Planning

https://trello.com/b/kDyDUx2I/commute-calculator-api ERB diagram to be developed

Up and Running

Languages/Frameworks

Make sure you have:

  • Ruby version: 2.3.1

  • Rails version: 5

  • Java Development Kit: jdk8 (required by neo4j)

Database Setup

Postgresql

With postgres installed, initialize the database with: $ rake db:create $ rake db:migrate

neo4j

Since this is a less typical setup, and has a few gotchyas I'll cover it in more detail. Download the dmg from the neo4j website then $ brew install neo4j

If you are using zsh you should alias rake or put noglob before each neo4j rake task alias rake='noglob bundle exec rake'

Install the databases for each environment into the project

rake neo4j:install[community-3.1.0,test]
rake neo4j:install[community-3.1.0,development]

Configure and migrate

rake neo4j:config[test,7474]
rake neo4j:config[development,7575]
rake neo4j:disable_auth[development]
rake neo4j:disable_auth[test]

Run the Databases

rake neo4j:start[test]
rake neo4j:start[development]
rake neo4j:migrate:all

You should be able to navigate to http://localhost:7575 or http://localhost:7474 in your browser and see a neo4j ui with a display of any data and basic tutorials.

Running

  • Run the server with: rails s and navigate to http://localhost:3001 (The default port is set to 3001 so that a second server can be easily run alongside the api using rails defaults)

  • Run the tests with: rspec spec (make sure neo4j and postgres are up and in the proper state)

Other Tech

GTFS

GeoJSON

React based ui (separate repo)

Services

  • Services (job queues, cache servers, search engines, etc.) TBD

commute-calculator-api's People

Contributors

abrowne-fiksu avatar getschomp avatar

Watchers

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