hmanne23 / P6

0 stars 0 forks source link

Problem 1 User Story (CODE) #2

Open jai1007-lab opened 10 months ago

jai1007-lab commented 10 months ago

As a student working on Problem 1 of Project 6, I have to enhance the Photo Sharing Application by converting the web server to use a database for data retrieval. This phase involves several critical tasks and code modifications to ensure that the application seamlessly fetches data from the MongoDB database and updates its components accordingly. Acceptance Criteria: • The web server's routes for /test, /user/list, /user/:id, and /photosOfUser/:id are successfully implemented, and they retrieve the required data from the MongoDB database. • Data processing and transformation are applied to ensure that the server data aligns with the UI requirements for each view. • Access to "magic models" (e.g., the "models" object) is entirely removed from the code, and the application relies on database queries for data retrieval. • The server's API passes all tests in the provided test suite, demonstrating its correct functionality. • The Photo Sharing Application's core functionalities remain intact, and deep-linking capabilities through React Router are preserved, allowing users to refresh the browser without disrupting the app's functionality.