kaavyalakshmanan / tele-vet

Tele-health web app that connects vets with pet owners
2 stars 2 forks source link

Completed api implementation with 7 endpoints and prepared the profile and edit pages to get connected #44

Closed Franco-yvr closed 4 years ago

Franco-yvr commented 4 years ago

1-added cors in app.js

2-added mongoose in app.js

3-added veterinarian model in model directory

4-added and tested 7 endpoints

5-prepared front end edit page and profile page to be connected to backend

6- implemented appointment booking system - yet to be fully tested

Overall the site runs perfectly on the front end and on the back-end. Work remain to be done to connect the two strategically. For example, I have come to realise that the serve GET request for obtaining the veterinarian data for proper profile page rendering should not be done at the opening of the vet profile page, but instead during the user search for veterinarians. The retrieved information could be used to populate Amy's profile cards and passed to the profile page as a prop if the user clicks on the profile card.

Similarly for the edit page, I think GET request for obtaining the veterinarian data should be made when the veterinarian logs, so that the information can be used in his/her portal(i.e. " Hello Dr. Clark" or calendar inputs, etc). The data can be sent to the edit page as a prop when the veterinarian click on the EDIT button on his/her profile.