项目作者: JohnnyHsieh1020
项目描述 :
Flask practice 3
高级语言: HTML
项目地址: git://github.com/JohnnyHsieh1020/Work_Log_Proj.git
Work Log Project(Backend Practice)
Create a website for employees to record their own work logs
There are three identities
- Administrator(Default)
- Supervisor
- Subordinate
Feature
- Login
- Logout
- Sign Up
- Edit personal information
- Work Log CRUD
Resources Used
Python Version : 3.9.4
IDE : VSCode
Requirements :
pip3 install -r requirements.txt
Reference documents or videos :
- https://youtu.be/dam0GPOAvVI
- https://www.maxlist.xyz/2020/07/30/flask-blueprint
- https://www.maxlist.xyz/2019/11/10/flask-sqlalchemy-setting
- https://www.tutorialspoint.com/sqlalchemy/sqlalchemy_orm_working_with_joins.htm
- https://blog.csdn.net/u010591976/article/details/104253489
- https://blog.csdn.net/yilovexing/article/details/104708198
- https://morioh.com/p/f38e3272d126
DataBase
Connect to PostgreSQL:
app.config['SQLALCHEMY_DATABASE_URI'] = 'postgresql://user_name:password@IP:PORT/db_name'
- Create a PostgreSQL database.
- Create User table, with 5 columns.
- id(P-key)
- name
- email
- password
- identity
- work logs
- Create Work Log table, with 4 columns.
- id(P-key)
- content
- date
- start time
- end time
- user_id(F-key, ref to User-id)