Introducción a Node.js y Express
Node.js y Express
Entorno de trabajo
Variables de entorno
Rutas dinámicas
Body parser
Postman
CRUD
¿Que es una API Restful?
Solicitudes GET
Solicitudes POST
CRUD
Solución del reto de validación
Solicitudes DELETE
MIddlewares
Middlewares - logger
Middlewares - ErrorHandler
DB
Instalar Postgresql
Instalar Prisma y PostgreSQL Client
Prisma Models
JWT
Autenticación utilizando JSON Web Tokens (JWT)
Auth - Register
Auth - Login
Expres.js
Arquitectura
Arquitectura parte 2
Creación y Migración de Modelos con Prisma para Citas Médicas
Admin controllers / services
Admin controllers / services parte 2
Reservations
Reservations parte 2
Appointments
Deploy
PostgreSQL
Deploy
You don't have access to this class
Keep learning! Join and start boosting your career
In order to develop an application to manage medical appointments efficiently, it is first key to understand and correctly handle the minimum necessary models. These models make it easy for registered users to choose blocks of time to schedule their appointments.
It is very important to have the essential models that enable the basic functionality of an API to manage appointments. In this particular case, the models are:
These models are critical to maintain an organized structure to support possible future extensions, such as doctors or specific categories.
To add these new models, follow a few specific steps:
schema.prisma
file.npx prisma migrate dev --name new_models npx prisma generate
These actions update your database and generate the information required to use the new models in the application.
An efficient option to visually manage the PostgreSQL database is PgAdmin, a user-friendly tool to explore data:
.env
file (localhost, port, user, password).PgAdmin makes it easy to review and validate information generated withseed
scripts, review users,appointments
or make manual modifications.
If you have ideas, comments or updates on this procedure or on how to better manage security when seeding data, please share them!
Contributions 1
Questions 0
Want to see more contributions, questions and answers from the community?