GithubHelp home page GithubHelp logo

hospitalventilatorserver's Introduction

HospitalServer

micro project of 3rd year 1st semester

Setup

mongo db

navigate to the folder where you want to host the data and perform the following

create a folder named data

$ cd path/to/data/folder
$ mkdir data
$ mongod --datapath=data --bind_ip 127.0.0.1 --port 27017

Installation

Install the dependencies and devDependencies and start the server.

$ cd HospitalServer
$ npm install
$ npm run start:all

Routes

/hospitals route

Route Method Funtion
/hospitals GET gets all the hospitals
/hospitals POST Adds new hospital
/hospitals/{Id} GET gets the hospital with hId equal to Id
/hospitals/{Id} PUT Updates Hospital with hId equal to Id with the content sent in the body
/hospitals/byName/{name} GET gets the hospitals with the name containing the name sent in the URL

/ventilators route

Route Method Funtion
/ventilators GET gets all the ventilators
/ventilators POST Adds new ventilator
/ventilators/{Id} GET gets the ventilator with ventilatorId equal to Id
/ventilators/{Id} PUT Updates ventilator with ventilatorId equal to Id with the content sent in the body
/ventilators/byName/{name} GET gets the ventilator with name containing the name requested for in the URL
/ventilators/byStatus/{status} GET gets the ventilator with status equal to status requested for in the URL

hospitalventilatorserver's People

Contributors

aksh-konda 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.