Before you begin a new development - Aimlackies/Reporter GitHub Wiki
Follow these basic instructions before starting work on any new feature.
-
Get the latest changes from the repository / branch
git pullNote: You should also change to a new branch before moving any further, if not already done so.
-
Set system environment varables for the Flask application. The first tells the Flask command the file to run on startup and the second will cause the Flask application to start in development mode.
Windows:
SET FLASK_APP=reporter.py SET FLASK_ENV=developmentUnix based systems:
export FLASK_APP=reporter.py export FLASK_ENV=development -
Update the database
make sure your local database is up-to-date with the latest changes
flask db upgradeNote: To generate a new migration once modifying
models.py, run the commandflask db migrate -m "migration message". -
Start the application.
You're done! All that is left now is to start the application and start developing!
flask run