Starting ShakeCastΒΆ
Install Python 2.7x
- Download and run get pip:
- curl https://bootstrap.pypa.io/get-pip.py > get-pip.py
- python get-pip.py
- Clone the repository from GitHub:
- git clone https://github.com/usgs/shakecast.git
- Install the requirements:
- cd shakecast
- Open a virtual environment if you wish (instructions to come http://docs.python-guide.org/en/latest/dev/virtualenvs/)
- pip install -r requirements.txt
ShakeCast is comprised of a ShakeCast server and a web server. The ShakeCast server scans for earthquake data, performs calculations, and sends notifications, while the web server provides a user interface for the software. These servers are started from individual python files; a setup script should run these files as daemons/services, but this has not been implemented yet.
- Start the ShakeCast server:
- cd sc/app
- python server.py start
- Start the web server:
cd ../
- Start the web server
- sudo python web_server.py (run web server in production from port 80)
- python web_server.py -d (run web server in development mode on port 5000)