-
Clone the repository:
git clone https://github.com/MelsovEZ/n1-lession6.git
-
Navigate to the project directory:
cd chat-app
-
Install dependencies for the server:
npm install
-
Navigate to the client directory:
cd client
-
Install dependencies for the client:
npm install
-
Start the backend server:
node server.js
-
Start the frontend server:
cd client npm start
-
Access the application in your web browser at http://localhost:3000.
/chats
: GET endpoint to fetch all chat messages from the server