Last active
February 27, 2017 19:54
-
-
Save robgaston/70f7d593ea581a32fae4b3f470fb09cb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Here is my latest attempt at this: https://gist.github.com/jmunowitch/35eb1d20a0b9cbf86f4b0eb4b167d43a