johnidm / seagal

Share blog posts in Slack channel

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

seagal

This is an elegant and simple way to share blog posts in Slack channel with social share buttons.

How to use

The endpoint https://nameless-castle-24251.herokuapp.com/ can be used to test.

First of the all you need to create a Slash Command, see image:

Features

Share

Now, you can share your blog post using the command /share <URL of blog post>, example /share http://www.johnidouglas.com.br/django-migrations-reversible-migrations/.

Metric

If you want to count the total shares use the command /metric <URL of blog post>, example /metric http://www.johnidouglas.com.br/django-migrations-reversible-migrations/.

Note: Your page should have the graph objects og:title e og:url, for more details access http://ogp.me/

Deploy on Heroku

If you want to install and create your own endpoint, follow this steps.

Get the project

cd $GOPATH/src/
go get github.com/johnidm/seagal

Create an app on Heroku

heroku login
heroku create

Deploy your application

git push heroku master

Ready, you can use a new endpoint.

See result

About

Share blog posts in Slack channel


Languages

Language:Go 100.0%