- The project makes use of NodeJS, AngularJS, Socket.IO, and MySQL (knex.js for QueryBuilder).
- It assumes that Node is installed as well as npm (Node Package manager).
- The root folder consists of
package.json
file that contains the dependencies required for stable run of the product. - The root folder also consists
justdoc.sql
file that contains the database.
- Use XAMPP or any other software for Apache server, and open phpMyAdmin.
- Make a database with the name
justdoc
. - Import the
justdoc.sql
file present in the root folder of the project into the database. - Open terminal in the root folder.
- Type
npm install
(This will install all the dependencies of the project). - Type
npm start
to start the server.
The server listens at http://localhost:4000
- Go to http://localhost:4000/doctor for the Doctor-Side of the chat.
- Go to http://localhost:4000/patient for the Patient-Side.
The workflow was kept as told in the assignment intimation. UI work was minimal. I could make use of AngularMaterial for the "WhatsApp feel", but the time constraint was there. However, all the functionalities are there. I'm listing down the features of the web-app below:
- Patient opens up his chat window and sees a bunch of questions and a doctor greeting.
- Patient fills the form and submits it, and waits for the doctor's response.
- When the form reaches the doctor, he sees all the choices filled by the patient (the data is uploaded in the db too).
- Doctor clicks on
Start Chat
that sends a notification to the patient that the doctor has joined the chat. - The normal chatting follows.
For any queries/errors, please reach out to me at satyammast@gmail.com. Thanks.