Giter VIP home page Giter VIP logo

lanebreach-api's Introduction

Lane Breach API

Development

Prerequisites

  • Docker
  • yarn (to provide simple command aliases for lengthy docker commands)

Getting Started

Run yarn build to build and yarn start at the command line to run the API locally. Be sure you have the Docker agent running.

You'll also need to create the database tables the application depends on and seed them with data yarn db:reset.

Finally, make an API request to see if your environment is configured correctly. See the documentation if you're looking for a sample request.

Database

The API is currently backed by a PostgreSQL database with the PostGIS extension.

Data sources

Most of our data comes from Open Data SF. See db/seeds.rb and Dockerfile.db for further details. The specific Sf 311 case data comes from https://data.sfgov.org/City-Infrastructure/311-Cases/vw6y-z8j6.

Local DB

You can connect to the local Postgres instance by running yarn db at the command line.

Production DB

Our production DB is currently hosted on AWS (RDS). Use the following command to connect to it:

PGPASSWORD=<<PASSWORD>> psql bikelane bikelanes --host bikelanes.cl6adk7d8ywn.us-east-1.rds.amazonaws.com

Check your Heroku account to retrieve the password or talk to a maintainer.

Deployment

The app lives on Heroku at https://lane-breach.herokuapp.com/. Any pushes to the heroku branch will get automatically deployed, including migrations.

To push what's on master onto the heroku branch, you can run git push origin master:heroku.

Contributing

We welcome contributions! All of our contributors are expected to follow the rules outlined in our Code of Conduct. Please create a separate pull request against master for each new feature/bug-fix. We will try to use Github issues whenever possible to describe tasks that we need to do.

Steps for building the various apps, and an overview of the design can be found on the wiki. We're excited to see your PRs!

lanebreach-api's People

Contributors

alex-wood avatar sahilda avatar omegabytes avatar mokosha 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.