flask/examples/minitwit/README

40 lines
834 B
Text
Raw Normal View History

2010-04-06 16:16:34 +02:00
/ MiniTwit /
because writing todo lists is not fun
~ What is MiniTwit?
A SQLite and Flask powered twitter clone
~ How do I use it?
1. edit the configuration in the minitwit.py file or
export an MINITWIT_SETTINGS environment variable
pointing to a configuration file.
2010-04-06 16:16:34 +02:00
2. install the app from the root of the project directory
pip install --editable .
3. tell flask about the right application:
2016-05-26 20:45:50 +02:00
export FLASK_APP=minitwit
4. fire up a shell and run this:
2010-04-06 16:16:34 +02:00
2016-05-26 20:45:50 +02:00
flask initdb
2010-04-06 16:16:34 +02:00
5. now you can run minitwit:
2014-04-29 01:48:31 +02:00
2016-05-26 20:45:50 +02:00
flask run
2014-04-29 01:48:31 +02:00
the application will greet you on
http://localhost:5000/
~ Is it tested?
You betcha. Run the `python setup.py test` file to
see the tests pass.