Note: All steps were performed using on Windows 10.
Link
ScreenShots
RUN LOCALLY Note: All steps were performed using on Windows 10.
-
Install
node(14.15.0)- NODEJS
- Use default setting and just keep clicling
nexttill finish
-
Install
Git-GIT- Use default setting and just keep clicling
nexttill finish
- Use default setting and just keep clicling
- Clone the Repo:
$ git clone https://github.com/gaurav-chaurasia/chat-app.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
.envfile in root folder or simply replace.env.examplewith.envfile and add your keys - to get Client id & Client Secret link
- to get
DATABASE_CONNECTION_URLand 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
- dev runs the sever with nodemon which automatically restart server everytime we make any changes
$ npm start- 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.


