faliqadlan / be

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

mrClinic

Tech Stack

Go.Dev reference Go.Dev reference Go.Dev reference Go.Dev reference

About The Project

logo

this project help the user as a patient get a medical record realtime, help the user to make an appointment with doctor, and help the doctor organize the data

OPEN API

Front-End repository

Quality-Assurance repository

ERD
HLA
Doctor
Feature Doctor Endpoint Query Param Request Body JWT Token Utility
POST /login - indentity & password NO login user with indentity & passwords
POST /doctor - _ NO register doctor
PUT /doctor - - YES update current doctor profile
DELETE /doctor - - YES delete current doctor account
GET /doctor/profile _ - YES get current doctor profile
GET /doctor/all - - YES get all doctor
Patient
Feature Patient Endpoint Query Param Request Body JWT Token Utility
POST /login - indentity & password NO login user with indentity & passwords
POST /patient - _ NO register patient
DELETE /patient - - YES delete current patient account
PUT /patient - - YES update current patient profile
GET /patient/profile patient_uid - YES get current patient profile
Visit
Feature Visit Endpoint Query Param Request Body JWT Token Utility
POST /Visit - _ NO add visit
PUT /Visit/:visit_uid - - YES update visit detail
DELETE /Visit/:visit_uid - - YES delete current visit
GET /Visit kind, uid, status, date, grouped - YES get visit
Testing
Folder Structure

(back to top)

How to Use

1. install

git clone https://github.com/MR-Clinic/be.git

2.1 create file .env

touch .env

2.2 open .env

nano .env

2.3 write .env

PORT=8080
DB=mysql
DB_Name=<database name>
DB_PORT=3306
DB_HOST=localhot
DB_USERNAME=<username>/root
DB_PASSWORD=<password>
DB_LOC=Local
S3_REGION=<reqion AWS S3>/ap-southeast-1
S3_ID=<KEY ID AWS S3>
S3_SECRET=<SECRETKEY AWS S3>

3.1 create credential folder

mkdir credential

3.2 place credential.json

place credential.json for access google calendar API
here the reference link
Click Here!

3.3 create token folder

mkdir credential

3.4 place token.json

place token.json for access google calendar API
here the reference link
Click Here!

4. run main.go

go run main.go

Contact

Gmail Github LinkedIn

(back to top)

About


Languages

Language:Go 100.0%