This app uses a vite React project for the frontend and a Node.js server for the backend. To use the app, simply type a message in the text field and submit it. This will send the messge to the server which will then send the message back and be displayed as a browser alert.
To set up project, open two terminal instances:
- In first terminal instance:
- From project root,
cd server
to change into server directory npm install
to install "ws" dependencynode server.js
to start backend server
- From project root,
- In second terminal instance:
- From project root,
cd client
to switch to client directory npm run dev
to start client server- Open
localhost:5173
in browser
- From project root,