medium search app
1.0.0
一个简单的搜索引擎,可搜索使用Sparlit和Elasticsearch构建的中等故事。该应用程序的演示可在Heroku上找到。
使用Python 3.7对代码进行了测试并在Ubuntu 18.04上运行。通过在终端中运行以下命令来创建和设置Python环境
# create python venv and install libraries in the requirements.txt
source ./create_env
由于此应用取决于Elasticsearch容器,因此最好使用Docker Compose。在开始之前,让我们构建此应用程序的Docker容器
docker build -t medium-search-app .
然后使用Docker组成:
source env/bin/activate
docker-compose up
# the webapp should be available in localhost:8501