https://github.com/kyhsa93/socket-server-starter
https://github.com/kyhsa93/socket-server-starter
Last synced: 7 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/kyhsa93/socket-server-starter
- Owner: kyhsa93
- Created: 2018-09-24T10:55:14.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-02-09T08:25:48.000Z (over 6 years ago)
- Last Synced: 2025-01-14T00:32:32.701Z (9 months ago)
- Language: JavaScript
- Size: 104 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# socket server start
socket server starter kit using socket.io## Configuration
* server config: [/config.json](/config.json)
* babel config: [/.babelrc](/.babelrc)
* eslint config: [/.eslintrc](/.babelrc)## command and script file
```bash
npm run build # make archive zip file
npm run doc # make JSDoc
npm run lint # lint using eslint, babel
npm run trans # transpile to common js
npm test # run test code
npm start # start server with livereload
```
* build: [/build.sh](build.sh)
* test: [/test.sh](test.sh)
* trans: [/transpile.sh](transpile.sh)## using docker
```bash
# if you want using docker, you have to run 'npm run trans' first
docker build -t socket-server: . # build docker image
docker run -d -p 80:80 socket-server # run docker container
```
* entyPoint: [/docker-entrypoint.sh](docker-entrypoint.sh)
* Dockerfile: [/Dockerfile](Dockerfile)
* container's nginx.conf: [/nginx.conf](nginx.conf)