2019-11-01 22:54:25 +00:00
|
|
|
# Flask-Project-Template
|
|
|
|
A template to quickly standup a flask webapp with bootstrap and a database.
|
|
|
|
|
|
|
|
# Dependencies
|
|
|
|
``` sudo apt install python3 ```
|
|
|
|
|
|
|
|
# Setup
|
|
|
|
*** Change directory to Flask-Project-Template/ or rename the folder before doing so.
|
|
|
|
|
2020-03-04 03:29:20 +00:00
|
|
|
``` python3 -m venv venv/ ```
|
2019-11-01 22:54:25 +00:00
|
|
|
|
2020-02-24 05:45:27 +00:00
|
|
|
Linux/Mac
|
2019-11-01 22:54:25 +00:00
|
|
|
``` source bin/activate ```
|
|
|
|
|
2020-02-24 05:45:27 +00:00
|
|
|
Windows
|
|
|
|
``` source bin/Scripts/activate ```
|
|
|
|
|
|
|
|
Linux/Mac
|
2020-06-04 04:31:14 +00:00
|
|
|
``` pip install -r linux-requirements.txt ```
|
2020-02-24 05:45:27 +00:00
|
|
|
|
|
|
|
Windows
|
2020-06-04 04:31:14 +00:00
|
|
|
``` pip install -r windows-requirements.txt ```
|
2020-02-24 05:45:27 +00:00
|
|
|
|
2019-11-01 22:54:25 +00:00
|
|
|
|
|
|
|
``` cd src/ ```
|
|
|
|
|
2020-02-24 05:45:27 +00:00
|
|
|
|
|
|
|
Linux/Mac
|
2020-06-04 04:31:14 +00:00
|
|
|
``` ./linux-start.sh ```
|
2020-02-24 05:45:27 +00:00
|
|
|
|
|
|
|
Windows
|
2020-06-04 04:31:14 +00:00
|
|
|
``` ./windows-start.sh ```
|
2020-02-24 05:45:27 +00:00
|
|
|
|
2019-11-01 22:54:25 +00:00
|
|
|
|
|
|
|
# Notes
|
2020-02-24 05:45:27 +00:00
|
|
|
Make sure to change the port in the start script as needed. Have fun!
|