Live : www.apollozest.com:5000
This small web app is built with flask, which shows the usage of elastic-search and mongodb with python. It has a search functionality related to available data of all airports.
Flask, SQLAlchemy, PyMongo, Elasticsearch
Create .env file with following variables:
SQLALCHEMY_URI = mysql://<user>:<pass>@<IP>/db
MONGO_URI = mongo-uri
SECRET_KEY = TOPSECRET
ELASTIC_URI = elasstic_search-url
ELASTIC_U = user
ELASTIC_P = pass
Create virtual env:
virtualenv -p python3.5 venv
source venv/bin/activate
Install requirements
pip install -r requirements
Create db
mysql> CREATE DATABASE db_flask;
Migrate
python> from app import db
python> db.create_all()
python app.py
- Flask - The python web framework
- Elasticsearch - Python ES client
- MongoDB - Flask Mongo client