Skip to content

ENTS-H112/mira-backend

Repository files navigation

Welcome to the MIRA API

This API is used for managing appointments and patients data

Features

  • Login and Register
  • Make an appointment
  • Check-up history
  • Easy-to-use instant radiology results (AI-generated)
  • Display list of available doctor
  • Integrates data in databases using blockchain technology. By attaching a unique timestamp to each data entry, it ensures an accurate record of when data was created or modified. This process results in a transparent, tamper-proof and easily verifiable record for all data transactions, providing an extra layer of security and accountability.
  • Etc.

Upcoming features

  • See the api-v2 branch

Installation

Install mira backend api on local

Clone this repository

  git clone https://github.com/ENTS-H112/mira-backend.git

Change Directory to mira-backend

  cd mira-backend

Install dependencies using NPM

  npm i

Set up environment variables

Create a .env file based on .env.example and fill in the necessary credentials.

run using Node

  npm run start

run Developer Mode

  npm run dev

How to use API

See Postman Collection

Force access to endpoints

http://localhost:4000/<endpoints>

Response

{
    "message": "Unauthorized, You need to login to access this route."
}

Login

http://localhost:4000/login

Body

{
    "email": "email@mail.com",
    "password": "pasword",
    "returnSecureToken": true
}

Register

http://localhost:4000/register

Body

{
    "email": "email@mail.com",
    "password": "pasword",
    "phoneNumber": "+62(your number)",
    "username": "username",
    "returnSecureToken": true
}

See more

Postman Collection

Postman Collection

Logo

About

This API is used for managing appointments and patients data

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors