Skip to content

jdeskins/socketio-gcmvm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

socketio-gcmvm

A quick demo for node.js and socket.io on Google App Engine Managed VMs using Custom Runtimes.

Usage

Start by cloning this repository.

To run the app locally:

npm install
npm start

The demo chat app is then available at: http://localhost:3000

Docker is no longer required.

To deploy the app to Google Cloud:

gcloud preview app deploy app.yaml

Since this app is using port 3000, you will need to go into the Managed VM console and edit the Network firewall to allow access to this port. The app will then be available from the VM's external IP address on socket 3000. Example: http://[VM-EXTERNAL-IP]:3000

You cannot access the app through the *.appspot.com host. You have to look up the external IP of your VM and use that. Another option is to assign the Managed VM a static external ip address and allow your front-end code to use that to access the app.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published