Skip to content

soubky0/Bond-Clinic

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bond Virtual Clinic

A virtual clinic and pharmacy targeted to be a website that helps connect between specialized doctors and patients.

Tech Stack

Client: React, Redux toolkit, Material-UI, Vite.

Server: Node, Express.

Database: MongoDB.

Installation

Clone the repo by using this command in the cmd but make sure you have GitHub CLI installed first

 gh repo clone advanced-computer-lab-2023/Bond-Clinic

Or

Install it with GitHub Desktop

Then after cloning, open a terminal on the project’s directory and type this command to create a .env file.

 cd backend
echo. > .env

Then, add the following MongoDB URI into the .env file.

MONGO_URI=mongodb+srv:https://soubky10:[email protected]/?retryWrites=true&w=majority

Then, while you are in the backend directory you can install the node modules then run the server the default port is 4000 you can change it by adding your preferred port in the .env file.

npm i
npm run dev

You should see this message “Connected to MongoDB and running on port 4000”.

Now, on another terminal we want to run the frontend so we need to open the project’s directory and type the following commands.

cd frontend
npm i
npm run dev

It should run and show that it is running on localhost:5173.

Screenshots

App Screenshot

Features

  • Light/dark mode toggle
  • Live previews
  • Fullscreen mode
  • Cross platform

Usage/Examples

import Component from 'my-project'

function App() {
  return <Component />
}

Running Tests

To run tests, run the following command

  npm run test

API Reference

Get all items

  POST /api/upload-documents
Parameter Type Description
id_document file Required. ID document of the pharmacist
degree_document file Required. Pharmacy degree document
Working license document file Required. ID document of the pharmacist

Get item

  POST /api/add-medicine
Parameter Type Description
name string Required. Name of the medicine
active_ingredients string Required. Active ingredients of the medicine
price string Required. Price of the medicine
quantity string Required. Available quantity of the medicine

Contributing

Contributions are always welcome!

See contributing.md for ways to get started.

Please adhere to this project's code of conduct.

License

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 99.8%
  • Other 0.2%