gjgd / open-graph-preview-demo

The purpose of this project is to show how to use open graph annotations to have a rich preview of a link in Slack (or other websites)

Home Page:https://l3mukrh389.execute-api.us-east-1.amazonaws.com/dev/2

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

open-graph-preview-demo

Install

Install serverless (and its alias sls)

npm i -g serverless

To deploy:

sls deploy

Try it:

https://l3mukrh389.execute-api.us-east-1.amazonaws.com/dev/2

If you paste this link in Slack, it will recognize the user agent and return open graph annotation

If you paste this link in a normal browser, it will return a Hello world sentence

Links

About

The purpose of this project is to show how to use open graph annotations to have a rich preview of a link in Slack (or other websites)

https://l3mukrh389.execute-api.us-east-1.amazonaws.com/dev/2


Languages

Language:JavaScript 100.0%