https://github.com/piku/sample-nodejs-app
Sample NodeJS app for deployment with piku
https://github.com/piku/sample-nodejs-app
nodejs websocket
Last synced: 10 months ago
JSON representation
Sample NodeJS app for deployment with piku
- Host: GitHub
- URL: https://github.com/piku/sample-nodejs-app
- Owner: piku
- License: mit
- Created: 2019-08-22T21:24:56.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2022-02-25T02:58:51.000Z (over 4 years ago)
- Last Synced: 2024-05-02T00:13:20.476Z (about 2 years ago)
- Topics: nodejs, websocket
- Language: HTML
- Size: 7.81 KB
- Stars: 4
- Watchers: 5
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Sample NodeJS Application for `piku`
> Contributed by @chr15m
This is a simple Nodejs app for piku that demonstrates:
* Simple multi-user websocket chat application.
* A nodejs web worker which handles incoming requests.
* A release worker which fires at deploy time (hello.js).
To publish this app to `piku`, clone this repository and run the following commands:
```bash
git remote add piku piku@your_server:sample_nodejs_app
git push piku master
```
Then you can set up an SSL cert and connect a domain by setting config variables like this:
```bash
ssh piku@your_server config:set nodechat NGINX_SERVER_NAME=your_server NGINX_HTTPS_ONLY=1
```
Then visit the site `your_server` and you will see a simple websocket chat application.