Skip to content

Repository files navigation

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
PropertiesValues
Nameapp-server-firewall
ParagraphAllow Custom TCP Port 5000
TargetsSpecified target tags
Target tagsweb-server
Source filterIPv4 ranges
Source IPv4 ranges0.0.0.0/0
Protocol and portsSpecified protocols and ports > check tcp > fill 5000
  1. Create a VM Instance Navigation menu > Compute Engine
PropertiesValues
Nameweb-server
Regionasia-southeast2 (Jakarta)
Zoneasia-southeast2-a
Machine typee2-micro (2 vCPU, 1 GB memory)
Boot diskType: New balanced persistent disk
Size: 10 GB
Image: Ubuntu 20.04 LTS

Test the Back-End System in here

Releases

Packages

Used by

Contributors

Languages