Node.js Getting Started

by alex-kwan



A Node.js app using [Express 4] ( 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.

/onenoteurl <url>;CID&gt;&amp;id=&lt;DIRECTORY&gt;&amp;resid=&lt;FILEID&gt;&amp;app=OneNote&amp;&amp;wd=&lt;SECTION&gt;|&lt;SECTIONID&gt;/&lt;PAGENAME&gt;|&lt;PAGEID>

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

Running Locally

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

Deploying to Heroku

$ heroku create
$ git push heroku master
$ heroku open


Deploy to Heroku


For more information about using Node.js on Heroku, see these Dev Center articles: