Google App Engine supports NodeJS platform. Just follow below steps to deploy your NodeJS application.
Step 1 : Setup Node
Download and install NodeJS
Install ExpressJS
npm install express
Step 2 : Setup Google Cloud SDK
If you are using Linux or Mac, use below commands
$ curl https://sdk.cloud.google.com | bash $ exec -l $SHELL
Step 3 : Create app in google cloud plateform
- Open the Cloud Platform Console.
- In the drop-down menu at the top, select Create Project.
- Click Show advanced options. Under App Engine location, select a United States location.
- Give your project a name.
- Note the Project ID because it will be used for commands and in configurations.
Step 4 : Initiate Google Cloud SDK
Execute below command to initiate Google cloud sdk
gcloud init
Step 5 : Create Hello World NodeJS app
Lets create NodeJS hello world app. Here you need these below files to create first hello world app. You can download hello world app from here
- app.js - Main code to run app
- app.yaml - important for google app engine, Which specifies runtime as NodeJS
- package.json - this file contains different types of data like version, name of the app. Minimum nodejs version required to run app..etc
Step 6 : Deploy App
Run below command on above hello world app directory.
gcloud preview app deploy app.yaml --promoteWait for some time. Once after you app deployed, you can check your app at https://<your-app-id>.appspot.com
Note
If you want change your app id or current google account, then you should execute step 4 again
Article is so convincing that I never stop myself to say something about it. You’re doing a great job ,Keep it up. Wifi Password Master Mod Apk
ReplyDeleteGreat Article
ReplyDeleteCloud Computing Projects
Networking Projects
Final Year Projects for CSE
JavaScript Training in Chennai
JavaScript Training in Chennai
The Angular Training covers a wide range of topics including Components, Angular Directives, Angular Services, Pipes, security fundamentals, Routing, and Angular programmability. The new Angular TRaining will lay the foundation you need to specialise in Single Page Application developer. Angular Training
This comment has been removed by the author.
ReplyDelete