- Student 1. Aleksi Rehu [email protected]
- Student 2. Arimo Pukari [email protected]
- Student 3. Santeri Heikkinen [email protected]
- Student 4. Tomi Pantsar [email protected]
Onlinestore uses Flask SQLAlchemy's version of SQLite for the database.
Libraries:
- requests
- pyside6
- flasgger
- flask
- flask-restful
- flask-sqlalchemy
- pytest
- pytest-coverage
- jsonschema
python -m venv .venv
.venv\Scripts\activate.bat
pip install -e .
Only one of the following should be run.
python tests/createdatabase.py
python tests/createdatabase.py fill
cd tests
pytest --cov-report term-missing resource_test.py --cov=onlinestore.resources
pytest db_test.py
If tests are failing, try deleting temp.db and database_test.db, then rerun the commands.
set FLASK_APP=onlinestore
set FLASK_ENV=development
flask run
cd Client
python main.py