https://github.com/nhoangkiet35/bookstore-management-topic
Project of The Competing Group
https://github.com/nhoangkiet35/bookstore-management-topic
bootstarp5 diagram ecommerce-website flask flask-security flask-sqlalchemy mysql-database payment python pythonanywhere reporting vnpay
Last synced: 2 months ago
JSON representation
Project of The Competing Group
- Host: GitHub
- URL: https://github.com/nhoangkiet35/bookstore-management-topic
- Owner: nhoangkiet35
- Created: 2023-11-09T02:28:55.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-04-22T00:57:14.000Z (about 1 year ago)
- Last Synced: 2025-02-22T16:36:54.309Z (3 months ago)
- Topics: bootstarp5, diagram, ecommerce-website, flask, flask-security, flask-sqlalchemy, mysql-database, payment, python, pythonanywhere, reporting, vnpay
- Language: HTML
- Homepage: https://hbtrung.pythonanywhere.com/
- Size: 5.52 MB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Python Flask Tutorial

Flask is a very lightweight Python Web Framework, easily helping beginners learn Python to create small websites.

[Flask-Security](https://flask-security-too.readthedocs.io/en/stable/index.html) allows you to quickly add common security mechanisms to your Flask application.
Many of these features are made possible by integrating various Flask extensions and libraries. They include:
- Flask-Login
- Flask-Mailman
- Flask-Principal
- Flask-WTF
- itsdangerous
- passlib
- QRCode
- webauthn
- authlib
## Installation
Use the package manager [pip](https://pip.pypa.io/en/stable/) to install foobar.
```bash
pip install flask
```
## Usage
```python
# Create an environment
> python -m venv .venv
> .venv\Scripts\activate
# setup file, setup debug rerender, and flask run or python fileName.py
> set FLASK_APP=run.py
# Debugger is active!
> set FLASK_DEBUG=1
> python -m flask run
# or
> python run.py
# to open the interpreter
python
>>> import flask
>>> exit()
```
## License
1. Activate virtual env (.venv\Scripts\activate)
2. Go to your project root directory
3. Get all the packages along with dependencies in requirements.txt
```bash
pip freeze > requirements.txt
```
4. You don't have to worry about anything else apart from making sure next person installs the requirements recursively by following command
```bash
pip install -r requirements.txt
```