Giter Club home page Giter Club logo

hospital-api's Introduction

To start do: npm start, then view in brwser postman or other API handler at (http://localhost:8000/)

Environment

This project uses the following environment variables:

Name Description Default Value
PORT Port for running on localhost "8000"

Pre-requisites

Getting started

  • Clone the repository
git clone  <git lab template url> <project_name>
  • Install dependencies (follwing command will install all dependecies as in package.json file)
cd <project_name>
npm install 
  • Build and run the project
npm start

use http://localhost:8000 to connect Api

Project Structure

The folder structure of this app is explained below:

Name Description
node_modules Contains all npm dependencies
routes Contain all express routes, separated by module/area of application
src/models Models define schemas that will be used in storing and retrieving data from Application database
** **/index.ss Entry point
package.json Contains npm dependencies as well as [build scripts]

functionality

doctors can register ,login(get access token). localhost:8000/doctors/register localhost:8000/doctors/login image image


logged in doctors can register patients, can create reports for patient localhost:8000/patients/register // header contains token and body contains email and name of patient
image image

localhost:8000/patients/:id/create_report // header contains token and body contains status that to be added in report Report contains details like patient name,status,checked by doctor name

doctors can find all patient localhost:8000/patients/findall image

can search particular patient using id localhost:8000/patients/find/:id image


doctors can see stats of monthly patients localhost:8000/patients/stats image image

doctrs can search reports by status

hospital-api's People

Contributors

adarshal avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.