Skip to content
Application for gathering links shared into a database.
Python HTML CSS
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
static
templates
tests
.gitignore
README.md
backup_database.py
debugconfig
edit.py
requirements.txt
reset_database.py
restore_database.py
user.py
wsgilinkapp.py

README.md

linkapp

Application for gathering links shared into a database.

Prerequisites

  • Redis 3.2.6
  • Python 3.4

Installation

$ pip install -r requirements.txt

Running

$ gunicorn wsgilinkapp:app

How To Configure

This will assume you are running Redis on your local host.

To change this, use the AppFactory class.

app = AppFactory(
    path_prefix="/", 
    redis_host='some other host', 
    redis_port=some other port, 
    redis_db=some other db)

Add Admin User

>>> from user import UserManager
>>> um = UserManager()
>>> um.add('username', 'password')
'username'

Run Tests

$ python -m unittest discover
You can’t perform that action at this time.