check poetry official installation docs
# install poetry
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python -
# check installation
poetry --version
# install dependencies
poetry install
First, you must prepare the .env
file in root directory.
Please specify your app's environment variables in a .env file.
# .env file example
FLASK_APP='app'
# configs: dev, test, prod, default(uses DevConfig)
FLASK_CONFIG='dev'
# mongodb conn format: 'mongodb://[username:password@]host[:port][/[defaultauthdb][?options]]'
# use single quote if you use ! in your string
MONGO_URI='mongodb://localhost:27017/naengboo'
# execute virtualenv
poetry shell
# run flask server
flask run