I <3 Python.
This project is exploratory only. Its purpose is to:
- Help reacquaint myself with database schema design.
- Learn how Python interacts with the database layer.
- See how to handle routing and form submissions in Flask.
The code in this project is neither production ready, nor anything I'm proud of or intend to show off. Rather, I'm keeping it in a public repository here so I can demonstrate my dedication to learning and practicing core programming concepts, and also so I have a version-controlled place where I can pick up where I left off should I switch between development environments.
- Copy the .env.example file to .env in the same directory.
- Enter a value for FLASK_SECRET_KEY in .env. If you'd like to use a database other than sqlite, enter the URL and credentials for your database into the DB_URL field.
- Create a new MariaDB database named
py-bgg
. - Run
pip3 install -r requirements.txt
to download dependencies. - Run
flask db upgrade
to run the database migration steps. - Flask should recognize the app.py file in the root of the project. Run the project with
flask run
. - You should be able to visit http://127.0.0.1:5000 to see the main page, which includes links to creating user data, viewing users, and viewing imported games.
Figured I might as well log some helpful resources I come across during my journey in this project.