Skip to content

Instantly share code, notes, and snippets.

@hoetz
Last active August 29, 2015 13:56
Show Gist options
  • Save hoetz/9335300 to your computer and use it in GitHub Desktop.
Save hoetz/9335300 to your computer and use it in GitHub Desktop.
node.js express azure web site cheat sheet
-[install node.js azure sdk mac os x]
-azure account download
-[save pub file to disk]
-azure account import xxx.publishsettings
-azure site create sitename --git
-sudo npm install express -g
-express
-npm install
-[rename app.js to server.js]
-[node server.js] will start your app locally
----git stuff in your src dir----
-git init
-git commit -m "initial"
-git remote add azure [.git uri from azure manage portal]
-git push azure master
site is now running on xxx.azurewebsites.net
-npm install -g nodemon
[instead of "node server.js" start app with "nodemon server.js", listens to changes in js files, auto restarts app]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment