Skip to content

Latest commit

 

History

History
19 lines (14 loc) · 908 Bytes

README.md

File metadata and controls

19 lines (14 loc) · 908 Bytes

Sample backend for the recipes app

Steps to run the server

  1. git clone https://github.com/tasteat/tasteat-server && cd tasteat-server
  2. virtualenv env
  3. . env/bin/activate
  4. pip install -r requirements.txt
  5. python tasteat/app.py

Database configuration

You need a MySQL database for this project. Scripts for table creation/population reside in the doc directory. After having the database setup, adjust the config files (see below) to match the database installation (server ip/user/pass/db).

App configuration

You can set the environment variable TASTEAT_CONFIG to one of the values:

  • development (default if not set)
  • production

Then you can edit the config file development.cfg or production.cfg inside the config directory. The file that will be used is pointed by the value of the TASTEAT_CONFIG variable.