A MOOCs social network (not really sure if this is what we're doing) built with Flask.
- Python >= 3.7
- Neo4j graph database
- Flask
- Python virtural env
pip install virtualenv
- If this is the first time you are running the project, create the python virtual environment with the command below:
virtualenv venv
- However if you've already ran the project before, activate the virtual env with this command:
source venv/bin/activate
- If Windows:
venv\bin\activate
pip install -r requirements.txt
- Set the username as
neo4j
and password aspassword
- Start graph server
- To seed the database run the following command (Ensure you are in the top directory):
python scripts/seed.py
- To start the Flask app, run the command found below:
FLASK_DEBUG=1 FLASK_APP=api/runserver.py FLASK_ENV=development flask run
- If Windows:
SET FLASK_DEBUG=1 FLASK_APP=api/runserver.py SET FLASK_ENV=development flask run
Not sure why but for some reason python runserver.py
fails to launch the app. So if you can't get the app to run
it might be because you are running this command. (I tried like a billion times).