Skip to content

HannahHan9/Patient-Appointment-Backend

Repository files navigation

Patient Appointment Network Data Application

This is an MVP tool called the Patient Appointment Network Data Application (PANDA). The PANDA tracks patient demographic data and associated appointments for each patient.

Built in:

  • JS using Express and PSQL

Getting Started

Dependencies

In order to run the project you will need:

  • Node.js v16 or later
  • PostgreSQL 14 or later

Installation

  1. Clone the repository.

    git clone https://github.com/HannahHan9/Patient-Appointment-Backend.git
  2. cd into the cloned repository directory.

  3. Install NPM packages.

    npm install
  4. Run the script to set up the test and development databases.

    npm run setup-dbs
  5. Create two .env files in the root of the project. In .env.development add PGDATABASE=patient_appointments and in .env.test add PGDATABASE=patient_appointments_test.

  6. Seed the development database.

    npm run seed

Tests

Run all tests for the project.

npm test

How to get the API running

  • please run npm start for the server to listen for requests on port 9090

How to interact with the API

  • Please refer to the endpoints.json file for detailed information on each endpoint

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published