JasonKleinert / historical-aerials

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Setup

Install/Switch Node (latest version): nvm use 6

Install rethink: http://www.rethinkdb.com/docs/install/ubuntu/

  • rethinkdb
  • Javascript drivers
  • Python drivers

Install gulp: npm install -g gulp

Install bower: npm install -g bower

Install nodemon: npm install -g nodemon

Install packages:

  • npm install
  • bower install

Development

Web API and Admin Interface

Copy config/production.sample.json to config/production.json and fill in config values.

Important: If you are going to make production deploys, ensure that config/production.json is properly filled out, paying special attention to either use or resave the adminPassword in our password repository.

You can copy an existing dump of the database from our backup bucket on S3. Run rethinkdb restore backupfile.tar.gz to restore the dump to your local rethinkdb server.

After you have restored the backup, to start the app you must run the following 3 commands in separate terminals:

rethinkdb to run the database. call command from 'Home' folder (where rethinkdb is installed)

gulp dev in one terminal to watch and dist source files. call command from historical-aerials directory

sudo npm start in another terminal to run the app. call command from historical-aerials directory

Access the application via http://localhost:3131/admin in the browser. Credentials in keypass.

ETL

Hopefully this should not be done ever again, but here are the steps.

Download the original database file from https://s3-us-west-2.amazonaws.com/tnris-misc/historical-aerials/Aerial_database_20150504.accdb and place in data/

apt-get install mdbtools to install mdbtools, which is required for reading the Access database

npm run etl to rebuild the new Rethink database from the original Access database

About


Languages

Language:JavaScript 97.1%Language:HTML 2.9%