Tool for visualizing statistics in for github repositories
We're using a python virtual environment to make sure we all use the same version of libraries. What this means is that when developing the app, your project directory will be within a "virtual environment" that has its own set of python libraries installed. Here's how to get started with using the virtual environment:
python3 -m venv venvwill create a virtual environment calledvenv. venv/bin/activatewill enter you into the virtual environmentpip install -r requirements.txtwill make sure all the packages you need are installed- You can run the command
deactivateto disable the virtual environment on the project
- run
pip freeze > requirements.txtto updaterequirements.txtwith all of the packages before pushing up
export FLASK_APP=server.pywill tell flask to find the app in the fileserver.py.export FLASK_ENV=developmentwill set the flask environment to development mode. Development mode shows an interactive debugger whenever a page raises an exception, and restarts the server whenever you make changes to the code.flask runwill run the server.