openlexington/redirect

Name: redirect

Owner: OpenLexington

Description: Redirect places.

Created: 2016-01-07 15:46:20.0

Updated: 2016-01-07 15:46:21.0

Pushed: 2016-01-12 00:56:13.0

Homepage: http://c4a.me

Size: 268

Language: JavaScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Build Status

Redirect

This is a simple Node app that allows us to serve shortlinks that redirect places and retain ownership of our data. We run it on Heroku and serve links at http://c4a.me/. This software is in beta: it works pretty well, serves our needs, but could use some improvement. See our repo issues if you'd like to help improve it.

Note: The master branch of this repo automatically deploys to Heroku if it passes tests.

What it does

Redirect reads links in redirects.json and redirects visitors to the right place.

Adding links

Branch or fork, add a new key/value pair in redirects.json and submit a Pull Request.

What it uses

How to install and run locally

t clone https://github.com/codeforamerica/redirect.git
 redirect
m install
m start

How to run tests

m test

Tests currently check to make sure the redirects.json file is valid JSON, and that the application serves redirects for each line in the file correctly.

License

This software is Copyright (c) 2015 Code for America, and released under the MIT License. Please see LICENSE for details.


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.