I decided to make this website to apply and further my knowledge on the following tools: html, css, flask, python3 and postgresql. This website is being developed on ubuntu. This webste will be based from the a tutorial project.
- Figure out how to format/style this md file (make it look decent).
- Host it either on heroku or my rasberrypi 4. Preferrably heroku at first since I will probalby need to use heroku on my college course.
- Use postgresql as database (for the added challenge of diverting from the most tutorials).
- Avoid searching for tutorials of anyhing similar like the flask tutorial, or tutorials that make a website that is similar to this one.
- HTML
- CSS
- Python3
- Flask
- Postgresql
- Jinja2
Psycopg2 was installed because it is the adapter that allows psqlalchemy to work with postgresql. Flask migrate was installed(tool that helps us interact with databases and tables). (Not used for now 14/01/2021)
After following along on askpython I will divert from the tutorial and make a simpler flask without the use of the app factory, as my understandng of flask is limited and and the tutorial was not enough for me to such a change to the app.
Since my main goal as of now is to make the app use postgresql as a database, I will be focusing on learning about that. I will be following along a video to get my database set and running on my development eviroment and will als use this video to see how to deploe the final project.
Since I have seen/read many tutorials, each with their own unique way of developing this project, I will be putting everything concerning the pythn logic of the project in a single file (main focus is to make this project work locally). That file is txtitapp.py by the way.
After the project works locally, I will look into how i can split the python logic into multiple files without breaking the projects; hopefully by the time I look into giving the project a better file structure I would have enough knowledge on how to actually do so.
To make the database I came accross 2 sites that might help:
- Gave an example and used modules that are already installed.
- Serving as docs
I figured out how to work with a database, on python. All that is left is to start implementing the app.
References used to style this page: