This repo contains Breaking News server that uses Koa, Primus with Sockjs as a transport, pnpm package manager and Rollup for bundling.
There is no GUI code here, it should be placed in the build
directory, use another repo ('breakingews') for that.
Available routes:
- /
- /version
- /ping
- /route
Clone this repository and install its dependencies:
pnpm i
Check rollup.config.js
for entry point (src/main.js
) and the output bundle (public/bundle.js
).
build
builds the application topublic/bundle.js
, minifieddev
builds application with no and starts it. A sourcemap file for debugging is generated as wellnpm version
createsconfig\version.json
file with the git version information that is used at/version
endpointnpm start
launches a server on a port defined in.env
file