https://github.com/amirhnajafiz/auth-website
Learn Flask by implementing a full website.
https://github.com/amirhnajafiz/auth-website
flask flask-sqlalchemy python python3 website websites
Last synced: 7 months ago
JSON representation
Learn Flask by implementing a full website.
- Host: GitHub
- URL: https://github.com/amirhnajafiz/auth-website
- Owner: amirhnajafiz
- Created: 2021-07-03T19:12:11.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-07-30T07:11:18.000Z (about 2 years ago)
- Last Synced: 2025-01-10T19:54:14.476Z (9 months ago)
- Topics: flask, flask-sqlalchemy, python, python3, website, websites
- Language: Python
- Homepage:
- Size: 721 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Implement a full website with Python Flask framework
First things first, install flask framework:
```shell
pip install flask
```Flask-log in provides user session management for flask.
Check the github sourse in [here](https://github.com/maxcountryman/flask-login).
Install flask-login module:```shell
pip install flask-login
```Flask-SQLAlchemy is an extension for Flask that adds support for SQLAlchemy to your application. It aims to simplify using SQLAlchemy with Flask by providing useful defaults and extra helpers that make it easier to accomplish common tasks.
Install it:```shell
pip install flask-sqlalchemy
```## How to run server ?
Once you installed the modules and packages, just run the *main.py*:
```shell
python main.py
```If everything is set correctly, you will get something like this:
```shell
* Serving Flask app 'website' (lazy loading)
* Environment: production
WARNING: This is a development server. Do not use it in a production deployment.
Use a production WSGI server instead.
* Debug mode: on
* Restarting with stat
* Debugger is active!
* Debugger PIN: 554-480-689
* Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)
```## Project
The project uses MVC model to create a website that users can add todo tasks for
themselves. Each user has a task that has due date and user can click to remove them or add new ones. For front-end I used Bootstrap4 and jinja2.## Demo
You can see the project output in here.