A Node.js app using [Express 4] (http://expressjs.com/) to create easy to read OneNote page links into slack channels
This application supports the Getting Started with Node on Heroku article - check it out.
I want to turn something that looks like that crazy url into
<PAGENAME> (WebView)
to mimic the experience when you paste a OneNote online page into Skype or Outlook
Make sure you have Node.js and the Heroku Toolbelt installed.
Since this works as a Slack command in slack, in order to integrate with slack it must be deployed to a public instance. However there are probably some components to this microservice which benefit from being deployed locally.
$ git clone git@github.com:heroku/node-js-getting-started.git # or clone your own fork
$ cd node-js-getting-started
$ npm install
$ npm start
## my thoughts
I then just put my own code into this sample project
I am hoping to use this as a rough project for someone else to build off of and as a learning experience
for contributing towards the open source community. Everyone has to start somewhere!
Your app should now be running on localhost:5000.
$ heroku create
$ git push heroku master
$ heroku open
or
For more information about using Node.js on Heroku, see these Dev Center articles:
- Getting Started with Node.js on Heroku
- Heroku Node.js Support
- Node.js on Heroku
- Best Practices for Node.js Development
- Using WebSockets on Heroku with Node.js
- Official slash-command documentation (https://api.slack.com/slash-commands)
- https://onedrive.live.com/ (this code also works for SharePoint online) (Where we get the links to minify them)