Merge branch 'master' of github.com:kylewm/woodwind

This commit is contained in:
Kyle Mahan 2015-08-14 08:39:02 -07:00
commit 5e657e9807
4 changed files with 53 additions and 2 deletions

View file

@ -4,3 +4,31 @@ Woodwind
A minimum viable stream-style feed reader.
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
View 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()

View file

@ -1,8 +1,9 @@
[uwsgi]
master=true
processes=1
socket=/tmp/woodwind.sock
chmod-socket=666
#socket=/tmp/woodwind.sock
#chmod-socket=666
http-socket=:3000
module=woodwind.wsgi
import=timers
attach-daemon=rqworker high low

13
woodwind.cfg.template Normal file
View 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 = '...'