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.
- JS using Express and PSQL
In order to run the project you will need:
- Node.js v16 or later
- PostgreSQL 14 or later
-
Clone the repository.
git clone https://github.com/HannahHan9/Patient-Appointment-Backend.git
-
cd
into the cloned repository directory. -
Install NPM packages.
npm install
-
Run the script to set up the test and development databases.
npm run setup-dbs
-
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. -
Seed the development database.
npm run seed
Run all tests for the project.
npm test
- please run
npm start
for the server to listen for requests on port 9090
- Please refer to the endpoints.json file for detailed information on each endpoint