An open API service indexing awesome lists of open source software.

https://github.com/boolfalse/rtca-scalegrid


https://github.com/boolfalse/rtca-scalegrid

Last synced: 5 months ago
JSON representation

Awesome Lists containing this project

README

          

# Chat App with Redis + Node + Socket.io
[Source GitHub Repo](https://github.com/Scalegrid/code-samples/tree/sg-redis-node-socket-chat)

This repository contains code for a chat application built using the following web technologies:

- [Redis](https://redis.io/)
- [Node.js](https://nodejs.org/en/)
- [Express.js](http://expressjs.com/)
- [Socket.IO](http://socket.io/)

The original blog post can be found at the following link: [Link_Blog_Here](http://google.com)

The Installation process assumes that you already have the above technologies installed on your machine.

## Install

Give download link here

Navigate to the folder and run:

```
npm install
```

To start the server, you can run:

```
npm start
```

The server should start at port 8080 (default). Navigate to [http://localhost:8080](http://localhost:8080) to see the demo.

Although, before doing that, you might want to flush the DB and start with 0 users.

For that, you can uncomment the line in `index.js` that says `client.flushdb();`

Once that is done, you are ready to go. Remember to restart the server if you intend to make any changes to the code.

You can also use something like [nodemon](https://nodemon.io/) to watch your files and restart the server automatically!