socketcomputer/README.md

27 lines
690 B
Markdown
Raw Normal View History

2024-04-07 11:03:09 -04:00
# socket.io-computer: Anniversary Edition
2024-04-02 07:43:54 -04:00
socket.computer, except not powered by socket.io anymore, and with many less bugs. This monorepo builds
- The backend
- Shared components
2024-04-03 02:25:38 -04:00
- The webapp (TODO)
2024-04-02 07:43:54 -04:00
## Building
```bash
$ yarn
$ yarn build:service # Build the service
$ yarn build:frontend # Build the webapp
```
## Hosting
TODO
- Edit `webapp/src/index.ts` to point the websocket URL to an appopiate place
- Build the service and the webapp (tip, see the above section)
- copy `webapp/dist` (excl. `.map` files) to an applicable webroot
- Run the backend, optionally with systemd service things (MAKE SURE TO SET NODE_ENV TO PRODUCTION.) (also proxy it for wss please)
... profit?