https://github.com/wednesdaydeveloper/node_express_sample2
https://github.com/wednesdaydeveloper/node_express_sample2
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/wednesdaydeveloper/node_express_sample2
- Owner: wednesdaydeveloper
- Created: 2016-01-20T11:37:11.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-01-20T12:10:28.000Z (over 10 years ago)
- Last Synced: 2024-12-15T01:26:19.323Z (over 1 year ago)
- Language: HTML
- Size: 3.71 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
,-----.,--. ,--. ,---. ,--.,------. ,------.
' .--./| | ,---. ,--.,--. ,-| || o \ | || .-. \ | .---'
| | | || .-. || || |' .-. |`..' | | || | \ :| `--,
' '--'\| |' '-' '' '' '\ `-' | .' / | || '--' /| `---.
`-----'`--' `---' `----' `---' `--' `--'`-------' `------'
-----------------------------------------------------------------
Welcome to your Node.js project on Cloud9 IDE!
This chat example showcases how to use `socket.io` with a static `express` server.
## Running the server
1) Open `server.js` and start the app by clicking on the "Run" button in the top menu.
2) Alternatively you can launch the app from the Terminal:
$ node server.js
Once the server is running, open the project in the shape of 'https://projectname-username.c9.io/'. As you enter your name, watch the Users list (on the left) update. Once you press Enter or Send, the message is shared with all connected clients.
git init
git add . -f
git commit -m "added server.js"
git remote add origin git@github.com:wednesdaydeveloper/node_express_sample2.git
git push -u origin master