Skip to content

Instantly share code, notes, and snippets.

@robgaston
Last active February 27, 2017 19:54
Show Gist options
  • Save robgaston/70f7d593ea581a32fae4b3f470fb09cb to your computer and use it in GitHub Desktop.
Save robgaston/70f7d593ea581a32fae4b3f470fb09cb to your computer and use it in GitHub Desktop.
# install deps via homebrew
brew update
brew install elasticsearch
brew install postgres
brew install postgis
brew install gdal
# configure es & pg to launch on startup
mkdir -p ~/Library/LaunchAgents
ln -sfv /usr/local/opt/elasticsearch/*.plist ~/Library/LaunchAgents
ln -sfv /usr/local/opt/postgresql/*.plist ~/Library/LaunchAgents
# launch es & pg
launchctl load ~/Library/LaunchAgents/homebrew.mxcl.elasticsearch.plist
launchctl load ~/Library/LaunchAgents/homebrew.mxcl.postgresql.plist
# clone the repo
git clone https://github.com/archesproject/arches.git
# create virtualenv
virtualenv ENV
source ENV/bin/activate
# install arches
cd arches
python setup.py install
python manage.py packages -o setup_db
# load test json
python manage.py packages -o import_json -s tests/fixtures/resource_graphs/archesv4_resource.json
# start the server
python manage.py runserver
@jmunowitch
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment