These are the sequence of commands to run this chat application on any laptop:-
- mkdir chat-project
- cd chat-project
- Initialize a new Vite React project:- npm create vite@latest
- Install the required dependencies:- npm install
- Replace the default files with our chat application code: a. Create the component files in the src/components directory b. Update App.jsx, App.css, and other files as we have in this code.
- Start the development server:- npm run dev
- Open the application in your browser:- a. The terminal will show a URL (usually http://localhost:5173/) b. Open this URL in your browser