yarn && lerna bootstrap
# Start client, port 9000
yarn client-dev
# Start express server, port 3000
yarn server-dev
Open http://localhost:9000/
to use.
Note: For simplicity, I use the default peer server
: 0.peerjs.com
.
Build client:
yarn client-build
Then, move all files in ./packages/client/dist
folder to ./packages/server/public
folder (if public
folder doesn't exist, please create it)
Next, build server:
yarn server-build
Finally, start server (by default, server was run on port 3000
):
yarn server-start
Open http://localhost:3000/
to use.