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