You will need to install the following:
This app uses git submodules for external dependencies. After cloning the repository, run
git submodule update --init --recursiveIf this is your first time running the CubingUSA website locally, follow the instructions in doc/deploy.md to set up your local development server.
You will need to install the Google Cloud SDK and run
gcloud auth login
gcloud config set project staging-cubingusa-orgWe use Google Cloud Datastore, which you will need to run locally. Run the command
gcloud beta emulators datastore startConfigure the app to use the local datastore:
$(gcloud beta emulators datastore env-init)Run
./run_sass.shThis command will keep running, and watch for updates to the scss files.
Run the following commands in the same terminal:
Enable the virtualenv:
virtualenv -p python3 envsource env/bin/activateInstall python dependencies:
pip install -r requirements.txtStart the local dev server:
gunicorn -b :8083 app.flask:app --reloadYou can use the ADMIN_WCA_ID environment variable to make yourself an admin:
ADMIN_WCA_ID=2005REYN01 gunicorn -b :8083 app.flask:app --reloadFollow the instructions in doc/staging.md to upload your changes to the staging environment.