Weighted lottery system hosted on a website for Brown Outing Club to run. Any Brown student can enter a lottery to go on a trip, but the lottery will be weighted according to factors like previous behavior (e.g. if they were a no show before, if they already got a trip) as well as other factors. An administrative page allows editors to change the website content and database data without code knowledge.
Mac:
. venv/bin/activate
Windows:
> venv\Scripts\activate
Inside your virtual env, run:
pip install -r requirements.txt
Find the demo .env file here and put it in your toplevel project directory
export FLASK_APP=boc/__init__.py
flask run
Integrations tests can be run with
pytest
https://flask.palletsprojects.com/en/1.1.x/quickstart/
https://flask-sqlalchemy.palletsprojects.com/en/2.x/quickstart/
TODO: If creating and destroying the database is not a suitable substitution for true migration, implement alembic (alternative resource).
- Clara Guo '23
- Anna Zhao '23
- Lucas Gelfond '23
- Ethan Asis '23
For contact info, please email [email protected]