A Realtime Web Chat Application created using Socket.io and Node.js
Demo.Video.mp4
- Clone the Repo:
git clone https://github.com/Akshay-jain22/WebChat-Application.git
- Move to the folder where you cloned the project
- Install all dependencies and devDependencies by running the following command
npm install
-
Before running the server add
.env
file in root folder or simply replace.env.example
with.env
file and add your keys -
To get Client id & Client Secret : LINK
-
To get
DATABASE_CONNECTION_URL
and make DB connection : LINK
# database connection url
DATABASE_URI=<YOUR_DATABASE_CONNECTION_URL>
# client id & secret for OAuth
GOOGLE_OAUTH2_CLIENT_ID=<YOUR_OAUTH_CLIENT_ID>
GOOGLE_OAUTH2_CLIENT_SECRET=<YOUR_OAUTH_CLIENT_SECRET>
- Now run the server by running following command
npm start
-
dev runs the sever with nodemon which automatically restart server everytime we make any changes
-
The above steps starts the development server on localhost:3000
-
Go to
http://localhost:3000/
in your browser -
It will automatically redirect you to the Home page and then ask for Signup or Login.