GithubHelp home page GithubHelp logo

patient-register-ts's Introduction

My API

This is an API for managing patients and psychiatrists. It allows you to register new patients, fetch the details of psychiatrists and their patients for a hospital, and more. Libraries and Frameworks


Steps to run this project:

  1. Run npm i command
  2. Setup database settings inside data-source.ts file
  3. Run npm start command

Libraries and Frameworks

The following libraries and frameworks were used in the development of this API:

  • Express: A popular web framework for Node.js, used for defining the routes and handling the requests and responses of the API.

  • TypeORM: An ORM (Object-Relational Mapper) that simplifies the interaction with the database and allows you to define the models and their relationships in a clear and concise way.

  • Swagger: A tool for documenting and testing APIs, used to generate the API documentation and provide a user-friendly interface for testing the APIs.

  • Faker: A library for generating fake data, used to generate fake data for the database.

API Endpoints

The following is a list of the API endpoints and their functionality:

  • POST /api/register: Register a new patient.

  • GET /api/psychiatrists/:hospitalId: Get the details of psychiatrists and their patients for a hospital.

  • GET /docs : Swagger documentation for the API.

Database Schema

Link to DB Diagram

patient-register-ts's People

Contributors

puneet2715 avatar

Stargazers

 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.