ChatApp is a project that we started to get familiar with Websockets and their implementation with Socket.IO.
The chatApp is hosted using Heroku.
- HTML
- CSS
- Javascript
- Express.js
- Socket.IO
For guidelines on how to contribute, check out CONTRIBUTING.md
It is recommended that you install and use Git Bash for commands in the following instructions.
In order to succesfully run the project on your local system, you will need to set up MongoDB on your system too. Instructions are given below.
-
Copy and clone your fork's URL using the
git clone [URL]
command.
Copy -
Clone -
-
Change your directory to reach chatApp folder using
cd chatApp
-
Install the required Node.js modules by running
npm install
(make sure you have Node.js installed on your system)
-
Download MongoDB Community server from their site.
-
Select 'Complete' in their 'choose setup type' section of the installer.
-
On the next section, select Install MongoDB as a service -> Run service as Network Service user
-
Install MongoDB compass (GUI Interface for MongoDB)
-
Install
-
Create a file named
.env
in the project directory and write the following line in it -MONGO_URL="mongodb://127.0.0.1:27017"
-
Make sure the
MongoDB Database Server
background process is running (in Task Manager). In case it isn't openservices.msc
from Windows search/Run and right-click and start the processMongoDB Server
.
-
Finally, run
node index.js
in your terminal/Git bash. Visitlocalhost:8080
to see the chatApp working.
You are required to sign up with an Email ID/Password (can be anything, a valid Email ID is not required so far). Login with the credentials and you'll land at the ChatApp's main page.
Open the folder in your choice of editor to edit to make changes to the project.
Join the telegram channel --> https://t.me/+9ZHXEOsK75BkZTU1