GithubHelp home page GithubHelp logo

redirect's Introduction

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 https://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

  • Node
  • Mixpanel for analytics (set environment variable MIXPANEL_TOKEN)

How to install and run locally

git clone https://github.com/codeforamerica/redirect.git
cd redirect
npm install
npm start

How to run tests

npm 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.

redirect's People

Contributors

aimeechabot avatar annelisegrimm avatar bengolder avatar c-lliope avatar caitdocker avatar chaserx avatar ckingbailey avatar cweems avatar fritzjooste avatar giannella avatar hartsick avatar jennifermarie avatar jennymt avatar julie-cfa avatar kuanb avatar loumoore avatar luigi avatar mari-apm avatar mathias-gibson avatar matthewloveless avatar migurski avatar mmitchellgyr avatar nathanielolin avatar racheledelman avatar rpilarski avatar sarahlizwhite avatar slooker avatar tdooner avatar tmaybe avatar zoeblumenfeld avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

redirect's Issues

Linking with www does not work

Just discovered this as a bug in our usage — for us:

This isn't a huge problem for us specifically since we can fix it, but my guess is some people are circulating www without realizing it doesn't work and will get silent errors.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.