Skip to content

Karolarizag/clinica_dental_frontend

 
 

Repository files navigation

Dental Clinic CRM

Instructions

Prerequisites

To build and run this application locally, you'll need Node, VueJS and a internet browser

Run this App

# Clone this repository
$ git clone https://github.com/anate82/clinica_dental.git

# Navigate to the main folder in the repository
$ cd clinica-dental

# Navigate to the App Folder, install NPM packages
$ cd app
$ npm install

# Run Frontend:
$ npm run serve

# Return to main folder, navigate to the backend folder and install NPM packages
$ cd ..
$ cd backend
$ npm install

# Run Backend:
$ npm run serve

Technologies used

  • [NodeJS]
  • [HTML5]
  • [CSS3]
  • [Express]
  • [Mongoose]
  • [MongoDB]
  • [Vuetify]
  • [Axios]

Data Model

Appointments

Key Type Reference Required Validation
_id ObjectId False
employees [ObjectId] Employees True
start Date True
end Date True
intervention String True
piece Number False
observations String False
medication String False
finished Boolean True

Employees

Key Type Reference Required Validation
_id ObjectId False
dateOfEmployment Date False Default
employed Boolean True Default
occupation String True
firstName String True maxLength
lastName String True maxLength
dni String True Unique & RegEx
password String True
contact Object Contact Object True
appointments [ObjectId] Appointments False

Patients

Key Type Reference Required Validation
_id ObjectId False
dateIn Date False Default
active Boolean True Default
firstName String True maxLength
lastName String True maxLength
dni String True Unique & RegEx
contact Object True
bloodType String True
Observations String False
treatments [ObjectId] Treatments False
files [Object] False
images [Object] False

Treatments

Key Type Reference Required Validation
_id ObjectId False
patient ObjectId Patients False Default
description String True
appointments [ObjectId] Appointments True maxLength
finished Boolean True
files [ObjectId] Patients False
images [ObjectId] Patients False

Contact Object Structure

Key Type Required Validation
email String True Unique & RexEx
mobilephone Number True RegEx
telephone Number False RegEx

Files/Image Object Structure

Key Type Required Validation
date Date True
link string True

API Routes

Index

Router URL Auth
AuthRouter /auth True
AppointmentsRouter /appointments True
EmployeessRouter /employees True
PatientsRouter /patients True

Appointments

Method URL Auth Function
GET /appointments True Get some basic info about all appointments

Authentication

Method URL Auth Function
POST /auth/login True Login

Employees>

Method URL Auth Function
GET /employees True Get some basic information from all employees
GET /employees/:employeeId True Get all information about a employee
POST /employees True Create a new employee
PUT /employees/:employeeId True Edit a employee

Patients

Method URL Auth Function
GET /patients/ True Get some basic information from all patients
GET /patients/:patientId/documents True Get all files and images from a patient
GET /patients/:patientId/treatments True Get all treatments and appointments from a patient
GET /patients/:patientId/treatmentslist True Get some basic information about appointments from a patients
GET /patients/:patientId True Update a patient
POST /patients/ True Create a new patient
PUT /patients/:patientId True Update a patient

TEAM

  • Ana Angulo - Desarrolladora (Análisis, diseño y desarollo) - anate82
  • Hector Rodriguez Bravo - HacheRB
  • Martin Daniel Schilkowske Robayna - msrroschi

License

MIT License

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Vue 95.3%
  • JavaScript 4.2%
  • HTML 0.5%