Flask Waiter Caller Project taken from Flask By Example Ebook
- Install Requirements
$ pip install -r requirements.txt- Install Apache2, mod_wsgi, Git
$ sudo apt-get install apache2 libapache2-mod-wsgi git- Clone this repo to
/var/www/directory
$ git clone https://github.com/repodevs/flask-waitercaller.git /var/www/flask-waitercaller- Copy this
apache2/waitercaller.confconfig tosite-availableapache2 directory
$ sudo cp apache2/waitercaller.conf /etc/apache2/sites-available/- 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- Open in your browser http://127.0.0.1
If using mongo database
- Install Mongo Database
$ sudo apt-get install -y mongodb-org- Install
pymongopackage
$ pip install pymongo- Create Index In Mongo
$ python create_mongo_indices.py-
Change
config.pyfromtest=Truetotest=False -
Run It!
$ python waitercaller.py