Application imitating basic facebook-like features. Developed for uni Flask class.
- Project structure
- Main functions
- Page concepts
- Installation
- Requirements
- Installation in Visual Code Studio
- Links
- Authorization
- Sign Up
- Sign In
- Post Board
- Add Post
- Show all posts
- Administration
- Manage Users
- Misc
- Blocked user page
- Main page (seen when user is not signed in)
- Main template:
- Nagivation bar:
- Logo
- Current user name (&& ||) authorization options
- administration panel button
- Footer with authors and copyrights
- Nagivation bar:
- Authorization options:
- Sign in
- Sign up
- Logout if user is signed in
- Sign Up
- login
- password
- password_confirmation
sign upbutton
- Sign In
- login
- password
sign inbutton
- Post Board
- add post form
- all posts
- Post
- WYSIWG post editor
- edit button:
- remove (role specifc)
- block user (role specific)
- Manage users
- Table with all users
- Each row is a form able to edit user when you click edit button
- edit button becomes save button when editing is enabled
- block/unblock button
- show posts button which redirects to post board with filtered posts of this user
- Main page
- Sign in to access information
- Typical landing page with sign in / sign up buttons
- Blocked user page
- information about being blocked
- some form to contact page administrators?
- 404 page
- Python
- Visual Studio Code
- Python and Pylance extensions for VSC
- Open the project in VSC.
- Open terminal
Terminal->New terminal. - Install flask
pip install flask. - Create a virtual python environment
python -m venv env. - Activate environment in PowerShell
. ./env/Scripts/activate.ps1. - Install requirements
pip install -r requirements.txt. - Select previously created virtual environment as the default runtime environment for the project by using
CTRL+Shift+P, selecting theSelect inerpreteroption and specifying the path to python -/env/Scripts/python.exe. - Run the project using console command
python app.pyor by clicking theplaybutton in the top right corner of the screen. - Have fun!