mprop

Version, currently master branch1 version
  • master branchlatestMay 19, 2019

github.com/jgaskins/mprop-crystal

Crystal port of Mitchell Henke's Phoenix.LiveView Milwaukee Property Search app

1 stars
0 dependents
License: MIT

Installation

# Add this to your shard.yml
dependencies:
  mprop:
    github: jgaskins/mprop-crystal
    branch: master

master is a branch, not a release, so this tracks it rather than pinning a version.

Then run:

shards install

shard.yml

Crystal
0.28.0
License
MIT
Author
Jamie Gaskins
Target
  • mprop from src/mprop.cr

Dependencies

Runtime Dependencies

  • pg*github: will/crystal-pg
  • granite*github: amberframework/granite
  • live_view*github: jgaskins/live_view

README

mprop-crystal

A Crystal::LiveView port of Mitchell Henke's Phoenix.LiveView Milwaukee Property Search app.

Installation

git clone https://github.com/jgaskins/mprop-crystal.git
cd mprop-crystal
shards
createdb mprop

Usage

First we need to download the data from the Millwaukee city website

curl https://itmdapps.milwaukee.gov/xmldata/Get_mprop_csv -o mprop.csv

Then we load it into the database. We'll need the DB URL so we'll export it to our shell environment here

Note: This takes quite a while to load

export DATABASE_URL=postgres://localhost/mprop
crystal seed_db.cr mprop.csv

Then we run the app. By default it listens on port 9393, but you can change it with the PORT shell environment variable.

crystal src/mprop.cr

Development

¯\_(ツ)_/¯

Contributing

  1. Fork it (https://github.com/jgaskins/mprop-crystal/fork)
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors