The GovLab website.
If you are updating from any commit prior to 1.0.0/e425c0, run npm i
before developing
Make sure the following are installed on your machine:
- npm
- Python 2.7
- pip and virtualenv
- SASS (Optional, however, if
sass
isn't on your command-line, your SASS files won't be rebuilt.)
Run the following commands in the base of your cloned repo:
npm i
virtualenv venv
source venv/bin/activate
pip install -r requirements.txt
(Note) On Windows, use venv\Scripts\activate
instead of source
From within local repo, run:
source venv/bin/activate
if virtualenv
is not already running in your shell session, and then:
python build.py runserver
to start the server.
Site will be served at http://localhost:7000 by default.
From within local repo, run:
python build.py deploy
.