Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/angelobattaglia/flask_sqlite_boilerplate
Boilerplate for an application written in Flask and SQLite
https://github.com/angelobattaglia/flask_sqlite_boilerplate
bootstrap flask sqlite sqlite3
Last synced: 4 days ago
JSON representation
Boilerplate for an application written in Flask and SQLite
- Host: GitHub
- URL: https://github.com/angelobattaglia/flask_sqlite_boilerplate
- Owner: angelobattaglia
- Created: 2024-03-25T17:11:23.000Z (8 months ago)
- Default Branch: master
- Last Pushed: 2024-07-06T13:30:13.000Z (4 months ago)
- Last Synced: 2024-07-06T14:44:15.283Z (4 months ago)
- Topics: bootstrap, flask, sqlite, sqlite3
- Language: HTML
- Homepage:
- Size: 21.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Flask-SQLite boilerplate
## How to fire this up
On Windows, it's recommended to use Powershell. In the root directory of this project:
```ps1
python -m venv .env
cd .env\scripts
.\Activate.ps1
```On linux, through bash or zsh
```shell
python3 -m venv .env
cd .env/bin
source activate
```Then install all of the libraries required
```ps1
pip install -r requirements.txt
pip list # to list the libraries required
```This will run the Flask development server with debug mode enabled, allowing you to see detailed error messages and take advantage of features like automatic code reloading when changes are made
```ps1
cd app
flask run --debug
```If you add any new module to this web app via virtual environment of this project,
just update the requirements.txt```ps1
pip freeze > requirements.txt
```As for the db viewer, it's recommended to use the [sqlitebrowser](https://sqlitebrowser.org/)
## Users in the database
There's one user user in the DB
```csv
email, password
[email protected], grovestreet
```## Details
The login and signup system is made so that we're using the email to refer to the user. It is
modular, meaning that we could add a nickname to address the user. But by doing so, it's important
to modify the routes in the app.py named "signup" and "login".### Table Creation
The creation of the tables is being done in app/table_creation.py