- Install the client dependencies:
> cd client && yarn install- Install the server dependencies:
> cd server && yarn install- To run in developement mode, you can use
yarn devornpm run devto run the server and the client
INFORMATION:
You may find cors origin issues with the websocket, make sure the origin is using the client url :
// in /server/src/server.ts file
const io = new Server(server, {
cors: {
origin: 'http://localhost:3000', // make sure it's match with client
methods: ['GET', 'POST']
}
});