Kristian
Kristian

Reputation: 21840

How do I deploy an existing nodejs app on Azure?

I've written a MEAN stack application locally on my machine, and now I want to put it up on Azure, somehow.

My application code is stored and managed in github.

How do I deploy the app in Azure?

Upvotes: 0

Views: 1034

Answers (1)

Bruno Faria
Bruno Faria

Reputation: 5272

It's as easy as creating a website using the portal. Had no problems with SQLite or Redis so mongoDb should be ok. You can also use MongoLab.

Web APP:

  1. Sign in to manage.windowsazure.com
  2. Click New -> Compute -> Web APP -> Quick Create -> Type a name, Create a service plan, Select Region
  3. Select your newly created Web APP -> Navigate to Dashboard -> Under Quick Glance Select Set up development from source control
  4. Select Github -> type in credentials
  5. Wait for deployment

MongoLab:

  1. Navigate to Marketplace, Click New and Select MongoLab
  2. Type Name, Select Service Tier
  3. Get the connection string
  4. Navigate to your Web APP, Select Configure Tab, Scroll to Connection Strings, Type the Key/Value pair for your db connection

References:

Create a Node.js site deploy from GitHub

Build and deploy a Node.js web app in Azure App Service

Building Web Apps on the MEAN Stack with OData in Microsoft Azure

Deploy a MEAN app on Azure

Upvotes: 3

Related Questions