-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathREADME
39 lines (24 loc) · 974 Bytes
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/ MiniTwit /
because writing todo lists is not fun
~ What is MiniTwit?
A SQLite and Flask powered twitter clone
~ How do I use it?
1. install flask and flask-cli via pip
2. edit the configuration in the minitwit.py file or
export an MINITWIT_SETTINGS environment variable
pointing to a configuration file.
3. fire up a shell and run this:
export FLASK_APP=minitwit.py; \
export LC_ALL=en_US.utf-8; \
export LANG=en_US.utf-8; \
flask initdb
4. now you can run minitwit:
export FLASK_APP=minitwit.py; \
export LC_ALL=en_US.utf-8; \
export LANG=en_US.utf-8; \
flask run --host=0.0.0.0 --with-threads --no-debugger --no-reload
the application will greet you on
http://0.0.0.0:5000/
~ Is it tested?
You betcha. Run the `test_minitwit.py` file to
see the tests pass.