Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/athuldev2024/demo-app-server

this is a demo chat application I made for displaying my skills in Node.js and Express and Socket.io.
https://github.com/athuldev2024/demo-app-server

expressjs handlebars hbs monolith-architecture mutation-testing nodejs restful-api sequelize-orm server-side-rendering session-cookie socket-io sqlite3 stryker-jest

Last synced: about 1 month ago
JSON representation

this is a demo chat application I made for displaying my skills in Node.js and Express and Socket.io.

Awesome Lists containing this project

README

        

# demo-app-server

A simple demo server for a chat application made using REST api as well socket.io.

## API documentation

Make sure to run the node application before hand.

http://localhost:3000/api-docs/

## Installation

### Prerequisites

- [Node.js](https://nodejs.org/) (version 20.18.0)
- [npm](https://www.npmjs.com/) (version 10.8.2)

### Check if unit tests passing

Run unit tests. Unit testing is done for controllers and constants folder.

```bash
npm run test
```

### Run mutation tests to check quality of unit tests.

Run mutation test. Mutation testing is done for controllers and constants folder.

```bash
npm run stryker
```

### Steps for starting the node server

1. Clone the repository:

```bash
git clone https://github.com/athuldev2024/demo-app-server.git
cd demo-app-server
```

2. Install node_modules

```bash
npm install
```

3. Start the server

```bash
npm run start
```

## See in browser (handlebar)

http://localhost:3000/hbs/login