-
Install python
sudo apt-get install python3
-
clone the master branch
-
create a virtual environment in the project root directory
-
activate the virtual environment
source venv/bin/activate
-
pip install requiremnets
pip install -r requirements.txt
-
create a sqlite database
touch dev.db
-
set dev database environment variable
export DEV_DATABASE_URL=sqlite:///dev.db
-
check to see if it created the tables
.tables
-
try to display data from a table
select * from projects;
you should see a list of projects display -
set flask environment variable to development
export FLASK_ENV=development
-
run the app
flask run
-
test to see if it worked: in a browser, type
localhost:5000/projects
you should see some json containing project data
- Install python
- Install pip
- Install virtualenv
- clone the master branch
- create a virtual environment in the project root directory
- activate the virtual environment
venv\Scripts\activate
- pip install requirements
pip install -r requirements.txt
- set dev database environment variable
set DEV_DATABASE_URL=sqlite:///dev.db
- set flask environment variable to development
set FLASK_ENV=development
- run the app
flask run
- test to see if it worked: in a browser, type
localhost:5000/projects
you should see some json containing project data