Doctor Chat is a medical chat application that works in real time using webRTC that forms a peer to peer connection between the Doctor and Patient. It provides users with a very smooth and attractive UI, where patients can schedule their appointment with the doctor and later join rooms created by doctors.
To get the project up and running on your local system, follow these steps:
-
Node.js: Ensure that Node.js is installed on your machine. You can download it from the official website: Node.js
-
Git: Ensure that Node.js is installed on your machine. You can download it from the official website: Git
-
MongoDB:Ensure that Node.js is installed on your machine. You can download it from the official website: MongoDB
Step 1: Download the Installer Download the Windows Installer from Node.js official website. Make sure you have downloaded the latest version of Node.js. It includes the NPM package manager.
Here, we are choosing the 64-bit version of the Node.js installer. After choosing the path, double-click to install .msi binary files to initiate the installation process. Then give access to run the application.
Step 2: Install Node.js and NPM You will get a welcome message on your screen and click the "Next" button. The installation process will start.
- Choose the desired path where you want to install Node.js.
- By clicking on the Next button, you will get a custom page setup on the screen. Make sure you choose npm package manager, not the default of Node.js runtime. This way, we can install Node.js and NPM simultaneously.
You should have 143MB of space to install Node.js and npm features.
The following features will be installed by default:
- Node.js runtime
- Npm package manager
- Online documentation shortcuts
- Add to Path
- The setup is ready to install Node and NPM. Click on the Install button
Step 3: Check Node.js and NPM Version
- If you have a doubt whether you have installed everything correctly or not, let’s verify it with “Command Prompt”.
Command Prompt window will appear on the screen.
To confirm Node installation, type node -v command.
To confirm NPM installation, type npm -v command.
And you don’t need to worry if you see different numbers than mine as Node and NPM are updated frequently.
To use Git on the command line, you will need to download, install, and configure Git on your computer. You can also install GitHub CLI to use GitHub from the command line. For more information, see "About GitHub CLI".
If you want to work with Git locally but do not want to use the command line, you can download and install the GitHub Desktop client. For more information, see "Installing and configuring GitHub Desktop".
If you do not need to work with files locally, GitHub lets you complete many Git-related actions directly in the browser, including:
- Creating a repository
- Forking a repository
- Managing files
- Being social
-
Download and install the latest version of Git from the official Git website.
-
Set your username in Git by running the following command in your terminal or command prompt:
git config --global user.name "Your Username"
- Set your commit email address in Git by running the following command in your terminal or command prompt:
git config --global user.email "your@email.com"
When you connect to a GitHub repository from Git, you will need to authenticate with GitHub using either HTTPS or SSH.
Connecting over HTTPS (recommended) If you clone with HTTPS, you can cache your GitHub credentials in Git using a credential helper. For more information, see "About remote repositories" and "Caching your GitHub credentials in Git".
Connecting over SSH If you clone with SSH, you must generate SSH keys on each computer you use to push or pull from GitHub. For more information, see "About remote repositories" and "Generating a new SSH key and adding it to the ssh-agent".
No specific project directory is required.
- Open Command Prompt and clone the repository to your local machine using the following command:
git clone https://github.com/harsh-srivastv/Doctor-Chat
- Navigate to the project directory:
cd project-directory
- Install the dependencies for the frontend and backend:
- Frontend
cd frontend
npm install
- Backend
cd backend
npm install
- Set up the environment variables:
- Create a
.env
file in the backend directory. - Copy the contents of the
.env.example
file and replace the values with your specific configuration. - Create an account at [https://www.twilio.com/en-us]
- Set your SID, Token, and Phone Number in .env file of backend folder
- Set up the database:
- Make sure you have MongoDB installed and running on your local machine.
- Update the MongoDB connection URL in the backend configuration file (
config.js
orconfig.js
).
- Start the frontend and backend servers:
- Frontend:
cd frontend
npm start
- Backend:
cd backend
node server.js
Open your web browser and visit http://localhost:3000 to access the application.
Frontend: React.js, HTML, CSS, JavaScript, Redux
Backend: Node.js, Express.js, MongoDB, Mongoose
- Harsh Srivastava - harshsrivastv12@gmail.com
- Aviral Tiwari - aviraltiwari49@gmail.com
- Divyam Kakkar - kakkardivyam24@gmail.com
- Anshika Gupta - sonalgupta6394@gmail.com
Under Supervision of:
- Ms. Akansha Singh (Assistant Professor), Computer Science and Engineering Department
- Pranveer Singh Institute of Technology, AKTU
For any inquiries or support, please contact our team at Email
Feel free to customize this README file based on your project's specific requirements and details.