ReDab Public Development Repository
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
informaniac 4ef9c7f677 initial commit 4 years ago
static initial commit 4 years ago
templates initial commit 4 years ago
.gitignore initial commit 4 years ago
README.md initial commit 4 years ago
TODO initial commit 4 years ago
config.py initial commit 4 years ago
database.py initial commit 4 years ago
ingredient.py initial commit 4 years ago
initdb.sql initial commit 4 years ago
re.db initial commit 4 years ago
recipe.py initial commit 4 years ago
redab.png initial commit 4 years ago
redab.py initial commit 4 years ago
requirements.txt initial commit 4 years ago

README.md

ReDab Private Repository

  • extract materialize.css into 'static' folder
  • create virtual environment virtualenv -p python3 venv
  • activate virtual environment source venv/bin/activate
  • install requirements pip install -r requirements.txt
  • set environment variables export FLASK_APP='redab' and export FLASK_ENV='production'
  • start server flask run
  • navigate to localhost:5000

initialize the database

if this is your first run, you should initialize the database. this must be done while the server is running.

  • if you opened another terminal, move to the project folder and set environment variables export FLASK_APP='redab' and export FLASK_ENV='production'
  • run flask init-db

development

if you plan to develop, i suggest to remove the database file from the git working tree as a .gitignore entry will be ignored since the file is already tracked in the repository.

git update-index --skip-worktree re.db

you will also want to use the development features of flask, such as auto-reload. to do this, just set the flask environment to development

export FLASK_ENV='development'