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?
|
|
|
|
|
|
2010-05-27 21:17:25 +02:00
|
|
|
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
|
|
|
|
2016-12-22 04:07:09 +08: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
|
|
|
|
|
|
2016-12-22 04:07:09 +08:00
|
|
|
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
|
|
|
|
2016-12-22 04:07:09 +08: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/
|
2014-11-05 06:45:22 +03:00
|
|
|
|
2010-04-11 18:45:06 +02:00
|
|
|
~ Is it tested?
|
|
|
|
|
|
2016-08-22 14:52:54 -04:00
|
|
|
You betcha. Run the `python setup.py test` file to
|
2010-04-11 18:45:06 +02:00
|
|
|
see the tests pass.
|