sara-sabr / poc-blockchain-platforms

WIP - Multi-project proof of concepts for various blockchain technologies.
MIT License
0 stars 1 forks source link

Create a Web server for Death Notification and deploy it on Azure #15

Open gilperez opened 4 years ago

gilperez commented 4 years ago

As a research I would like to document how to create the web server for Death Notification and how to deploy it on Azure.

1. Create a Web Server for Death Notification

We suppose:

are installed in your computer.

and have an account on Azure.

On Windows, type:

>bash

$mkdir myapp

$cd myapp

$npm init type RETURN for all options

$touch index.js

To install Express, type the command: $npm install express body-parser --save The package express is to create the web server, The package body-parser is to parse the data passed in the request body.

Add code into index.js

2. Deploy myapp on Azure

At first, we need to create a new Web App Service

2.1 Create a new Web App

Click Review + create

2.2 Deploy myapp on Azure

You need Azure App Service Extension.

And click install.

To deploy myapp on your Web App service, click Azure (Ctrl+Shift+A)

That's all!

Get myapp Source Code.