Original source code from https://github.com/pallets/flask/tree/16d83d6bb413bec09a656a659b98d897e7abcc81/examples/minitwit
To create a docker image execute:
docker build . -t minitwit
To run the docker image execute:
docker run -p 5000:5000 minitwit
and visit with your browser http://localhost:5000
To run unit tests inside the container execute:
docker run minitwit python setup.py test
MiniTwit
because writing todo lists is not fun
A SQLite and Flask powered twitter clone
- edit the configuration in the minitwit.py file or
export an
MINITWIT_SETTINGS
environment variable pointing to a configuration file. - install the app from the root of the project directory
pip install --editable .
- tell flask about the right application:
export FLASK_APP=minitwit
- fire up a shell and run this:
flask initdb
- now you can run minitwit:
flask run
the application will greet you on http://localhost:5000/
You betcha. Run the python setup.py test
file to
see the tests pass.