Skip to content

Proof of concept of an open data app based on FDIC's Closed Loan Sales data

Notifications You must be signed in to change notification settings

PluribusDigital/closed-sales

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Prerequisites

Rails Development
Front-end Development

Front-end Development

First-Time
  1. Set up the environment variables
cp .env.example .env
  1. Open .env in your favorite text editor and fill in the appropriate values
  2. Initialize the database
vagrant up
vagrant ssh
docker-compose up -d
docker-compose run api rake db:create db:migrate db:seed
Every other time
vagrant up
vagrant ssh
docker-compose up

Changes made to the public/app/client directory should automatically be detected and presented on a browser refresh


The Process we Followed To Get to this Repo

Setup Rails App

  • Install gems: pg

Scrape the Data

  • Mechanize gem
  • Write Scraper
  • For Prototype: store data to file
  • Use db seed for easy collaboration

Setup Front End

  • Setup Foundation in public/app
  • For Prototype: keep in public, but can be moved as needed for prod

Build API

  • Generate model rails g model loan sale_id:string site_name:string date_sold:date loan_type:string quality:string number_of_loans:integer book_value:integer sales_price:integer winning_bidder:string address:string

  • Generate controller rails g controller loans

  • Setup JSONAPI (https://github.com/doga/jsonapi_for_rails)

  • Write API tests

  • Test read

  • Test read only (not delete/post/patch)

Tests

Backend API tests (via rspec)

rspec

Full Stack Acceptance Tests (Cucumber)

rake cucumber

About

Proof of concept of an open data app based on FDIC's Closed Loan Sales data

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published