A Python web app that uses the Flask framework and SQLite database for data persistence to store a users top 10 movies based on the entered rating out of 10. Utilized SQLAlchemy/SQL and Flask to practice decorators, routes, and database connectivity. Although not deployed, the project served as a valuable practice exercise for understanding web development concepts and building robust backend functionality. Strengthened skills in web development frameworks, database connectivity, and data persistence using Flask and SQLAlchemy.
edit.movie.mov
delete.movie.mov
add.movie.mov
Installing from the requirements.txt handles most of the requirements, but you will also need to make sure to have a The Movie DB developer account to access an API key to complete the searches.
-
(Optional) Setup a virtual environment and activate it to install requirements into the virtual environment to run instead of your computers global environment.
-
Install the project requirements.
pip install -r requirements.txt
- Create a
.env
using the.env.sample
file as a guide. ChangeTHEMOVIEDB_API_KEY
,DB_STRING
, andSECRET_KEY
to the proper information of your instance of the SQLite database.
SECRET_KEY
can be set using this command
python -c 'import secrets; print(secrets.token_hex())'
- Run the migrations
flask db upgrade
- Run the local server: (or use VS Code "Run" button and select "Run server")
flask run
See the LICENSE file for license rights and limitations (MIT).