BillyFrcs / NotesAppAPI

Testing to Deployed the Back-End Notes App API in Google Cloud Platform.

Home Page:http://notesapp-v1.dicodingacademy.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Notes App API | Back-End

Testing to Deployed a Node.js Back-End Notes App API in Google Cloud Platform with Google Compute Engine Virtual Machine (VM) Instances.

Setup And Installation

  • Run npm install to install all of the required dependencies.
  • Start the server in Production mode run npm run start and to start in Development mode just simply run npm run dev that's pretty much it.

Note: Make sure that disable the value of Block insecure private network in chrome://flags to avoid Same-Origin Policy problems in browser. After that don't forget to set it back to the default value.

Google Cloud Console

Go to Google Cloud Console and create a firewall rule and VM instance.

  1. Create a firewall rule Navigation menu > VPC network > Firewall
Properties Values
Name app-server-firewall
Paragraph Allow Custom TCP Port 5000
Targets Specified target tags
Target tags web-server
Source filter IPv4 ranges
Source IPv4 ranges 0.0.0.0/0
Protocol and ports Specified protocols and ports > check tcp > fill 5000
  1. Create a VM Instance Navigation menu > Compute Engine
Properties Values
Name web-server
Region asia-southeast2 (Jakarta)
Zone asia-southeast2-a
Machine type e2-micro (2 vCPU, 1 GB memory)
Boot disk Type: New balanced persistent disk
Size: 10 GB
Image: Ubuntu 20.04 LTS

Test the Back-End System in here

About

Testing to Deployed the Back-End Notes App API in Google Cloud Platform.

http://notesapp-v1.dicodingacademy.com

License:MIT License


Languages

Language:JavaScript 100.0%