Installation instructions can be found https://python-poetry.org/docs/%23installation
.
you will need to take a copy of .env-template and call .env to which you will then need to provide values for
TRELLO_KEY
TRELLO_TOKEN
APP_BOARD_NAME='To Do App'
TRELLO_USER=''
TRELLO_ENDPOINT='https://api.trello.com/1/'
The project uses a virtual environment to isolate package dependencies. To create the virtual environment and install required packages, run the following from a bash shell terminal in the directory todo-app:
$ poetry install
$ poetry install
Once the setup script has completed and all packages have been installed, start the Flask app by running:
$ poetry run flask run
Your app should now be running in daemon mode:
* Serving Flask app "app" (lazy loading)
* Environment: development
* Debug mode: on
* Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)
* Restarting with fsevents reloader
* Debugger is active!
* Debugger PIN: 226-556-590
Now visit http://localhost:5000/
in your web browser to view the app.
If you havent already you will want to install vagrant details found https://www.vagrantup.com/docs/installation
Using a terminal you should change directory to this project and run the following
vagrant up
vagrant will begin to build your app using gunicorn rather than flask, once the build scripts stop providing feedback you
can now visit http://localhost:5000/
in your web browser to view the app.
docker build --target development --tag todo-app:dev .
docker run --env-file ./.env -p 5000:5000 --mount type=bind,source="$(pwd)"/todo-app,target=/todo-app todo-app:dev
docker build --target production --tag todo-app:prod .
docker run --env-file ./.env -p 5000:5000 --mount type=bind,source="$(pwd)"/todo-app,target=/todo-app todo-app:prod
docker compose up --build