https://github.com/ezeparziale/bootstrap-flask-template
:computer: Web site Flask + Bootstrap 5
https://github.com/ezeparziale/bootstrap-flask-template
bootstrap bootstrap5 flask flask-login flask-sqlalchemy flask-web python sqlalchemy
Last synced: 3 months ago
JSON representation
:computer: Web site Flask + Bootstrap 5
- Host: GitHub
- URL: https://github.com/ezeparziale/bootstrap-flask-template
- Owner: ezeparziale
- Created: 2022-03-26T03:27:55.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2023-11-29T00:17:13.000Z (over 2 years ago)
- Last Synced: 2025-01-20T19:17:37.298Z (over 1 year ago)
- Topics: bootstrap, bootstrap5, flask, flask-login, flask-sqlalchemy, flask-web, python, sqlalchemy
- Language: HTML
- Homepage:
- Size: 950 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# :computer: Website demo with Flask + Bootstrap 5
Forum website demo
## :floppy_disk: Installation
Create virtual enviroment:
```bash
python -m venv env
```
Activate enviroment:
- Windows:
```bash
. env/scripts/activate
```
- Mac/Linux:
```bash
. env/bin/activate
```
Upgrade pip:
```bash
python -m pip install --upgrade pip
```
Install requirements:
```bash
pip install -r requirements-dev.txt
```
## :wrench: Config
Create `.env` file. Check the example `.env.example`
:lock: How to create a secret key:
```bash
openssl rand -base64 64
```
:construction: Before first run:
Run `docker-compose` :whale: to start the database server
```bash
docker compose -f "compose.yaml" up -d --build adminer db
```
and init the database with alembic:
```bash
alembic upgrade head
```
## :runner: Run
```bash
flask run --debug
```
## :pushpin: Features
- [x] flask
- [x] blueprints
- [x] bootstrap 5
- [X] postgres database
- [X] alembic
- [X] docker compose
- [X] 2FA
- [X] Dark theme