ChatApp is a web-based chat application. It contains basic features that enable online messaging.
We need to start the backend first.
-
To do that, we need to first make sure the backend is connected to the right database. You should change replace the environment variable
MONGODB_URIin the filebackend/.envwith your own database uri. -
Now, you can go to the backend:
cd backend
- Install the npm modules if you have not do so:
npm install
- You are ready to start the server now:
npm run dev
With server ready, we are ready to run the app in the development mode.
- Go to frontend:
cd frontend
- Install the npm modules if you have not do so:
npm install
- Start the frontent:
npm start