* added cors to env dev * updated socket.io * tweaked pm2 configs * tweaked readme * slight refactor of index * removed types for socket.io as it is part of main package * clean up and setting default ports
28 lines
414 B
Markdown
Executable File
28 lines
414 B
Markdown
Executable File
# Example of excalidraw collaboration server
|
|
|
|
Collaboration server for Excalidraw
|
|
|
|
If you need to use cluster mode with pm2. Checkout: https://socket.io/docs/v4/pm2/
|
|
|
|
If you are not familiar with pm2: https://pm2.keymetrics.io/docs/usage/quick-start/
|
|
|
|
# Development
|
|
|
|
- install
|
|
|
|
```sh
|
|
yarn
|
|
```
|
|
|
|
- run development server
|
|
|
|
```sh
|
|
yarn start:dev
|
|
```
|
|
|
|
# Start with pm2
|
|
|
|
```
|
|
pm2 start pm2.production.json
|
|
```
|