Giter Club home page Giter Club logo

pokechat's Introduction

PokeChat

Project license

A Discord inspired chat application using Node.js and with Pokemon Theme live on http://pokechat-app.herokuapp.com/

Setup

To use it first we need to download Node.js Download node from here

Once Node is downloaded and setup properly now we need to start Command Prompt

To check if Node is installed just type node and u will see something like the image below the version may vary

To check npm version type npm -v in the command prompt

Start Using:

Open Command Prompt and Create a folder for example PokeChat

Change your working Directory to that new folder

cd Pokechat

  • Now we need to start with first command npm init which Starts npm

    Some information will be asked like package name, author, license, etc. Fill it as you want
    
    In the entry point name it server.js(you can use any name but if you are cloning the repository I have used it.)
    
    Once this is done a package.json will be created
    
  • We now need to install dependencies type npm install express moment socket.io

    Express is web framework for Node.js
    moment.js is used to get date time
    socket.io enables realtime, bi-directional communication between web clients and servers.
    
  • We need a developer dependency that is Nodemon which keeps our server running when developing so we dont need to restart back the server if there are some changes in the code

    ```npm install -D nodemon```
    

Once you install all of it. Open package.json and you will see that all the dependencies are there.

  • Now to setup Nodemon

    Open package.json file change and there you will find "scripts" which will look like
    
      "scripts": {
      "test": "echo \"Error: no test specified\" && exit 1"
      }
    Change it to code below
    
      "scripts": {
      "start": "node server",
      "dev": "nodemon server"
      }
    Here start will be node entrypointFILENAME and dev is nodemon entrypointFILENAME
    

This completes the setup

  • Now to run just type npm run dev

pokechat's People

Contributors

dependabot[bot] avatar harshoza36 avatar

Watchers

 avatar  avatar

Forkers

00-00-00-11

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.