Skip to content

amitfriedman12/pop-data

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

README

Population Data

  • Ruby version: 2.4.4

  • Rails version: 5.0.1

  • Database creation

$ bundle exec rake db:create
  • Database migrations
$ bundle exec rake db:migrate
  • Seed DB
$ bundle exec rake seed_zips_data[https://s3.amazonaws.com/peerstreet-static/engineering/zip_to_msa/zip_to_cbsa.csv]

$ bundle exec rake seed_msas_data[https://s3.amazonaws.com/peerstreet-static/engineering/zip_to_msa/cbsa_to_msa.csv]
  • How to run the test suite
bundle exec rails spec
  • API is hosted on heroku. To get population data for a given zipcode, make a GET api call to:

https://pop-data.herokuapp.com/zips/:zip

For example: https://pop-data.herokuapp.com/zips/90266

About

API that returns population data

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published