This small Flask application is used as the backend for the Component Collection application. It has some basic functionality for querying a PostgreSQL database. It also has methods for modifying user data stored in the database, as well as methods for sending emails when requested.
The database I'm currently using for this project is a copy of the popular DVD Rental database. A copy of this database is deployed on Azure.
@todo: additional routing for profile modification
@todo: implement NoSQL Key/Value caching of session data in place of REDIS (too expensive)
@todo: build GUI for this application
@todo: build addtional data scrubbers to prevent XSS
- Please ensure both Python and pip are installed (pip/python --version)
- Clone this repository to your local device via link or
git clone https://github.com/syue40/component-collection-backend.git - Spin up a venv in the root repository (https://docs.python.org/3/library/venv.html)
- Install the required dependencies with
pip install -r requirements.txt - In the root folder, run
python app.py(flask runalso works if you have it installed already) - By default this applet runs on
http://localhost:5000/
┣📦config
┣ ┗ 📜flask_config.py
┣📦utils
┣ ┣ 📜dao.py
┣ ┣ 📜email.py
┣ ┣ 📜functions.py
┣ ┗ 📜validator.py
┣📦routes
┣ ┣ 📜auth.py
┣ ┗ 📜portfolio.py
┣📜app.py
┣📜requirements.txt
┣📜README.md
