RaspberryPiFoundation/plinky

Name: plinky

Owner: Raspberry Pi Foundation

Description: Python Link Redirection.

Created: 2015-06-15 22:38:27.0

Updated: 2018-04-04 14:44:59.0

Pushed: 2018-04-04 14:44:58.0

Homepage: null

Size: 213

Language: Python

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Plinky

A Python base link shorterner that couldn't be more stupid

How to use it

For local testing, create a .env file in the root of your application. Within that file you'll want the following environment variables…

TCUT_FILE = ./shorturls/example_shorturls.yaml
ENT_WRITE_KEY=your_key_goes_here

The yaml file containing your shorturls needs to be set up. If you don't want to use Segment.io to track events you don't need to set up the Segment write key.

For deployment, you'll want to set these environment variables on the host machine.

Running Locally

I use foreman to run my webserver. If you want to see debug message then do this…

foreman run python plinky.py

… as this will load the environment.

To run it as Heroku would, run with the following command…

foreman start

Shorturls in Yaml - The Rules
TODO

There is plenty that could be improved. Please raise issues in GitHub if you have suggestions. https://github.com/martinpeck/plinky/issues


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.