Boilerplate code to create a server on Google Cloud and serve web pages to the public using a Node JS server. Quickly create a placeholder website for your domain with this.
Cyclic is a very easy way to deploy a full stack serverless app. Check it out here
- Create a new project on Google Cloud https://console.cloud.google.com/
- Install GCloud CLI, login and select the project.
- Run
gcloud app deploy
to deploy your application. The folder structure is setup in the simplest way to get started. This command will upload the files, install packages and runnpm start
Add some arbitary nameservers to your domain. This can be done by adding NS records. eg:
Type | Value |
---|---|
NS | joyce.ns.cloudflare.com |
NS | nash.ns.cloudflare.com |
Wait ~ 24 Hours for DNS propagation and then proceed with adding the website to Cloudflare with Add a site
option in Websites
tab of the Cloudflare Dashboard.
Verify your domain by adding a Property at Google Webmaster Central. You will have to add a TXT record. It's recommended to connect Cloudflare to avoid delays in DNS record propagation.
Go to App Engine -> Settings -> Custom Domains and follow the steps to add a domain. https://console.cloud.google.com/appengine/settings/domains?project=project-name
You will have to ensure that you have verified ownership of the domain at Google Webmaster
Connect the www
subdmain as well. Add the given A, AAAA, and CNAME records to your domain with Cloudflare. And your App Engine will be connected to your domain
For AWS instructions see Instructions for EC2