This is an example application which uses vanilla Server Sent Events for real-time chat implementation without web sockets and long looping. Client is built with React and Chakra-UI
Important note: This app can only run on node v14.15.4 or higher.
npm install
to install server dependencies
cd client && npm install
to install client dependencies
npm run dev
to run server on port 4000 and react client on port 3000 (concurrently)
Or npm run server
and npm run client
in two different terminals.
npm run build
to build the react client
npm start
- this will start the Express server (without nodemon), and also serve the React client build.