Merge branch 'master' of github.com:kylewm/woodwind
This commit is contained in:
commit
5e657e9807
4 changed files with 53 additions and 2 deletions
28
README.md
28
README.md
|
@ -4,3 +4,31 @@ Woodwind
|
||||||
A minimum viable stream-style feed reader.
|
A minimum viable stream-style feed reader.
|
||||||
|
|
||||||
Supports mf2 h-feed and xml feeds (thanks to Universal Feed Parser).
|
Supports mf2 h-feed and xml feeds (thanks to Universal Feed Parser).
|
||||||
|
|
||||||
|
Installation
|
||||||
|
----------
|
||||||
|
|
||||||
|
How to run your own instance of Woodwind. The default configuration
|
||||||
|
uses SQLite, so no database setup is necessary.
|
||||||
|
|
||||||
|
```bash
|
||||||
|
git clone https://github.com/kylewm/woodwind.git
|
||||||
|
cd woodwind
|
||||||
|
```
|
||||||
|
|
||||||
|
Set up the virtualenv and install dependencies.
|
||||||
|
|
||||||
|
```bash
|
||||||
|
virtualenv --python=/usr/bin/python3 venv
|
||||||
|
pip install -r requirements.txt
|
||||||
|
```
|
||||||
|
|
||||||
|
Use the basic SQLite configuration, create database tables and run Woodwind.
|
||||||
|
|
||||||
|
```bash
|
||||||
|
cp woodwind.cfg.template woodwind.cfg
|
||||||
|
python init_db.py
|
||||||
|
uwsgi woodwind-dev.ini
|
||||||
|
```
|
||||||
|
|
||||||
|
Now visit localhost:3000, and you should see the login screen!
|
||||||
|
|
9
init_db.py
Executable file
9
init_db.py
Executable file
|
@ -0,0 +1,9 @@
|
||||||
|
#!/usr/bin/env python
|
||||||
|
|
||||||
|
from woodwind import create_app
|
||||||
|
from woodwind.extensions import db
|
||||||
|
|
||||||
|
app = create_app()
|
||||||
|
|
||||||
|
with app.app_context():
|
||||||
|
db.create_all()
|
|
@ -1,8 +1,9 @@
|
||||||
[uwsgi]
|
[uwsgi]
|
||||||
master=true
|
master=true
|
||||||
processes=1
|
processes=1
|
||||||
socket=/tmp/woodwind.sock
|
#socket=/tmp/woodwind.sock
|
||||||
chmod-socket=666
|
#chmod-socket=666
|
||||||
|
http-socket=:3000
|
||||||
module=woodwind.wsgi
|
module=woodwind.wsgi
|
||||||
import=timers
|
import=timers
|
||||||
attach-daemon=rqworker high low
|
attach-daemon=rqworker high low
|
||||||
|
|
13
woodwind.cfg.template
Normal file
13
woodwind.cfg.template
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
import os
|
||||||
|
|
||||||
|
DEBUG = True
|
||||||
|
# do not intercept redirects when using debug toolbar
|
||||||
|
DEBUG_TB_INTERCEPT_REDIRECTS = False
|
||||||
|
SECRET_KEY = 'super secret key'
|
||||||
|
|
||||||
|
SQLALCHEMY_DATABASE_URI = 'sqlite:///' + os.getcwd() + '/db.sqlite'
|
||||||
|
PER_PAGE = 100
|
||||||
|
|
||||||
|
# client secret and key for fetch twitter contexts from granary.appspot.com
|
||||||
|
TWITTER_AU_KEY = '...'
|
||||||
|
TWITTER_AU_SECRET = '...'
|
Loading…
Add table
Add a link
Reference in a new issue