Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/harshoza36/pokechat
A Discord inspired chat application using Node.js and with Pokemon Theme
https://github.com/harshoza36/pokechat
chat-application chatroom nodejs socket-io
Last synced: about 2 months ago
JSON representation
A Discord inspired chat application using Node.js and with Pokemon Theme
- Host: GitHub
- URL: https://github.com/harshoza36/pokechat
- Owner: HarshOza36
- License: mit
- Created: 2020-05-31T05:12:36.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-02-11T12:32:30.000Z (almost 2 years ago)
- Last Synced: 2023-03-08T22:38:21.755Z (almost 2 years ago)
- Topics: chat-application, chatroom, nodejs, socket-io
- Language: JavaScript
- Homepage: http://pokechat-app.herokuapp.com/
- Size: 489 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PokeChat
![Project license](https://img.shields.io/apm/l/vim-mode?style=plastic)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](https://nodejs.org/en/download/)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
```Javascript
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
}
```
Change it to code below
```JavaScript
"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```