Skip to content

GaurangDhorda/NodeChatServer

Repository files navigation

NodeChatServer

Installing local packages...

In the server folder we will generate package.json file by running the following command:

 npm init -y

After that we will install our dependencies and save them to package.json:

npm install express socket.io --save

In the same folder we will create index.js file for our server app.

In package.json file add in "scripts":{} property..

"start": "node index.js"

In the Client side of your directory add following command to add socket.io client side installation..

 npm install socket.io-client --save

Deployment this nodejs express socket.io server files to Heroku..

Heroku Setup Insruction from Github

Inistializing git in folder...

  1. Initialize the Git repository at the root level
    • git init
  2. Add all the files to your local Git (staging)
    • git add -a
  3. Commit your changes to your local Git
    • git commit -m "commit message"
  4. Link to your GitHub repository
    • git remote add origin < url of github repository >
  5. push your change
    • git push --set-upstream origin master

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published