Skip to content

repodevs/flask-waitercaller

Repository files navigation

Flask Waiter Caller

Flask Waiter Caller Project taken from Flask By Example Ebook


  1. Install Requirements
$ pip install -r requirements.txt
  1. Install Apache2, mod_wsgi, Git
$ sudo apt-get install apache2 libapache2-mod-wsgi git
  1. Clone this repo to /var/www/ directory
$ git clone https://github.com/repodevs/flask-waitercaller.git /var/www/flask-waitercaller
  1. Copy this apache2/waitercaller.conf config to site-available apache2 directory
$ sudo cp apache2/waitercaller.conf /etc/apache2/sites-available/
  1. Enable configuration and disable default apache2 configuration
# disable default conf, or disable other conf
$ sudo a2dissite 000-default.conf
$ sudo a2ensite waitercaller.conf
$ sudo service apache2 reload
  1. Open in your browser http://127.0.0.1

Others

If using mongo database

  1. Install Mongo Database
$ sudo apt-get install -y mongodb-org
  1. Install pymongo package
$ pip install pymongo
  1. Create Index In Mongo
$ python create_mongo_indices.py
  1. Change config.py from test=True to test=False

  2. Run It!

$ python waitercaller.py