Software engineering project from UBB.
Notice, you need Python 3.4+ for this steps to work.
-
Create and activate virtual environment
-
If you get a weird error on some systems regarding pip, follow this setup.
-
Install required dependencies
pip install -r requirements.txt
-
Copy
school/config.EXAMPLE.py
toschool/config.py
, and edit the config if you want something different from the default -
Init the database data (this will create all the database tables)
python manage.py init
If you are not in the virtual environment you must change to it.
python manage.py run
You can log in with the username test
and password test
(if you did init the database using the instructions from step 5, as described above).
This project uses Flask as a framework (general documentation), with the following extensions:
- Flask-Login - handles the common tasks of logging in, logging out, and remembering your users’ sessions over extended periods of time.
- Flask-WTF - handles creation/validation and using of forms in the UI.
- Flask-SQLAlchemy - adds SQLAlchemy support, which is an ORM.
On the UI side we use the following technologies/libraries:
- jQuery as a helper library for Javascript
- Twitter Bootstrap for UI elements and components
- Jinja2 as a template engine (used by default by Flask framework).