daily-redirector

command module
v0.0.0-...-e81c236 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 5, 2021 License: AGPL-3.0 Imports: 25 Imported by: 0

README

Daily Redirector

Redirect daily.dev links

Build Status License StackShare

The redirector service is in charge of redirecting users to the relevant post based on a cutom daily.dev link. The service also publishes a message upon every view of a human (not a bot) so the ranking system can use it for calculating the score of every post.

Stack

  • Go v1.11
  • Go dep managing dependencies.
  • net/http as the web framework

Local environment

At the moment it is not possible to run the Redirector without access to a Google Cloud Pub/Sub instance or an emulator.

Daily Redirector requires a running instance of Dail API, you can set it up by following the instructions. The service is required for getting the post link.

Make sure to use Go 1.11 and install all dependencies using dep

Environment variables:

  • API_URL - Root url to the API service or the Gateway (if exists in the environment)

Want to Help?

So you want to contribute to Daily Redirector and make an impact, we are glad to hear it. 😍

Before you proceed we have a few guidelines for contribution that will make everything much easier. We would appreciate if you dedicate the time and read them carefully: https://github.com/dailydotdev/.github/blob/master/CONTRIBUTING.md

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL