We'll build this back-end and front-end app in a group.
We did in the lesson earlier. Give it a name that suggests it's a Doctor app.
- Create a REST controller.
- Create a
/homeendpoint that returns a'Welcome to the Doctor App'string. - Use Postman to test the API.
Your app will have two data models: Doctor and Appointment. You'll use MongoDB as your database to talk to your database.
In this step, you'll only create a Doctor model.
- The
Doctorshould have at least two fields:name,specialtyandpicture. - Create APIs to update and delete.
In the next step, you'll add the Appointment model and map it with Doctor.
- The
Appointmenttable should have at least two columns:date,patientName, andreasonForAppointment. - The
DoctorandAppointmenttables should be mapped to each other. - A user can add and delete a Appointment.
- A user should be able to view all of the Appointments added
In this step, create a front-end app using react. Make sure you create several components that connected to the Doctor and Appointment models.
Again, the mapping between the Doctor and Appointment models is one-to-many mapping.
1- Add authentication
2- Use uploading files to uplaod an image from your Computer for Doctor Picture.
3- Deploy your Application using Heroku.