Skip to content

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

Notifications You must be signed in to change notification settings

athuldev2024/demo-app-server

Repository files navigation

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

Check if unit tests passing

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

npm run test

Run mutation tests to check quality of unit tests.

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

npm run stryker

Steps for starting the node server

  1. Clone the repository:

    git clone https://github.com/athuldev2024/demo-app-server.git
    cd demo-app-server
  2. Install node_modules

    npm install
  3. Start the server

    npm run start

See in browser (handlebar)

http://localhost:3000/hbs/login