- Student 1. Aleksi Rehu arehu20@student.oulu.fi
- Student 2. Arimo Pukari apukari@student.oulu.fi
- Student 3. Santeri Heikkinen saheikki20@student.oulu.fi
- Student 4. Tomi Pantsar tpantsar20@student.oulu.fi
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