Skip to content

Commit

Permalink
Merge pull request #7 from shivamshekhar/v1.2.0
Browse files Browse the repository at this point in the history
made changes to readme
  • Loading branch information
shivamshekhar authored Apr 3, 2021
2 parents 748a2d8 + 76c2638 commit a0d6958
Showing 1 changed file with 18 additions and 4 deletions.
22 changes: 18 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
# chat-app-backend
##### Version 1.2.0

## Description

Backend server code for a simple chat application. Written in Nodejs using ExpressJS.

## Prerequisites

Make sure Nodejs version >= 12 is installed (https://nodejs.org/) along with **npm** (node package manager)
* Make sure Nodejs version >= 12 is installed (https://nodejs.org/) along with **npm** (node package manager)
### Optional (Recommended)

* Make sure mysql (https://www.mysql.com/) version 8 is installed on your local.

## Getting Started

Expand All @@ -20,11 +24,21 @@ git clone https://github.com/shivamshekhar/chat-app-backend && cd chat-app-backe
npm install
```

* Run Db migrations (Recommended but Optional)
```bash
sudo mysql -u root -p < ./scripts/mysql/db.sql
```

* Run app
```bash
node app.js
```

If you want to run without connecting to a sql database
```bash
NO_DB=1 node app.js
```

* Verify that app is running successfully by visiting following url in browser
```bash
http://localhost:3000/test
Expand All @@ -41,16 +55,16 @@ If app is running successfully, you'll see following message

### Short Term

* Implement a SQL database to persist data, instead of keeping them in in-memory maps.
* Made a frontend web client for this server.
* Implement more functionality like adding a friend/contact, etc.
* Improve the auth and session token logic and make it more secure.
* Improve the auth and session token logic and make it more secure.
* Improve long polling logic to make it work in cluster mode.

### Long Term

* Deploy this code on an AWS instance.
* Make an android client.
* Reformat the code, and use Typescript instead of NodeJS.
* Introduce clustering to run multiple processes.

## Author

Expand Down

0 comments on commit a0d6958

Please sign in to comment.