Chatsation is a "chat app", but so far, it only works having two browsers under the same localhost link and the "conversation" happens live with yourself. This was honestly just to try out Socket.io.
But it still works in your local machine as long as you follow the instructions below!
npm i
-
Create a ".env.local" file on the main directory of the project.
-
Make sure you have created a MongoDB account and create a new database and follow the steps. REMEMBER THE PASSWORD YOU CREATE FOR THE USER!
-
Press the "Connect" button to conenct the cluster to the app, and click on "VS Code" under "Access your data through tools".
-
Follow instrictions and paste link inside the ".env.local" file in the project after the key name "DB_USER".
Example of what the link given to me would look like pasted into the file:
DB_USER=mongodb+srv://anitagarango:<password>@cluster0.qjsaitf.mongodb.net/test
and replace with the password you created for the user in the process of Step 3
npm run dev
- Next.js 13
- Node.js (Express.js)
- MongoDB
- Socket.io
- Jasmine
- Axios