pip3 install -r requirements.txt
postgres
cd webapp
, npm install
cd webapp
, npm start
psql postgresql://postgres:postgres@localhost
You need to run in python3
. Mac comes with python2
by default so do not run any commands without the 3
The structure of the server is split into different directories:
blueprints
- Backend Python code, split into subsectionsdatabase
- Database objects and querieshelpers
- Various scripts to help in maintaining the serverstatic
- Static website files (JS/CSS/images)tasks
- Contains celery code user for processing the queue of replaystemplates
- Dynamic website files (rendered HTML templates)Docker Community Edition (Stable)
Docker will run Postgres, Redis, Flask, Celery, and Node inside linux based "Containers" on most platforms. Download and install Docker and Docker Compose for your platform:
# Start containers. Should be in project root directory (where docker-compose.yml is)
docker-compose up
# See your containers running
docker ps
Now go to localhost:3000
and the site should be running.
We run with pytest and use some features from it. If you are using an ide (pycharm/intellij) you must change the default runner from unit tests to pytests You can make this change by going to settings and searching for "unittest" Python unit test configuration