SmartMedic-Chat is a secure chat application that enables realtime communication between users of SmartMedic app.
Checkout the app here smartmedic.herokuapp.com
- HapiJS - SmartMedic-Chat is built on HapiJS for API.
- SocketIO - The chat is powered by Scoket connection using socket.io.
The config.js
contains application-level configuration.
server.js
is the entry main file that starts the application.
routes and socket server are inside lib
folder.
- Clone this repository locally.
- run
cp .env.example .env
- run npm install
- Clone smartmedic repository locally - Needed for User Login. (See SmartMedic dependencies in its github page)
- Edit
public/chat.html
to add your own code. Add your own JWT.
- Import all models from smartmedic.
- Create ChatRoom Model.
- Store Coversations into ChatRoom Model.