Skip to content

xyz71148/appengine-websocket-nodejs

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Example App: Running Websocket on AppEngine

This project implements a simple websocket with Node.js using the AppEngine resources;

Project setup, installation, and configuration

Create a virtual environment, and get the gcloud components. You will use the Managed VMs

Then, clone this project on your machine.


$ cd appengine-websocket-nodejs
$ npm install
$ node app.js

Deploying

How to deploy

ssh dev "export PATH=${PATH}:/snap/bin && gcloud auth login"
project_id=sock-276016
git_repo=https://github.com/xyz71148/appengine-websocket-nodejs.git
git add . && git commit -m "deploy" && git push origin master
ssh dev "curl https://jie8.cc/f/p-deploy | bash -s deploy $project_id $git_repo"

How to setup the deployment environment

On your account at the Google Cloud Platform you need access the Menu: Google App Engine -> Instances - Change the option Managed to User. Next you need set the IP to static.

Your app is able to run =D

Contributing changes

Licensing

About

Testing the GAE using websocket and node.js

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 66.4%
  • JavaScript 33.6%