Arquisoft / lomap_en1b

LoMap Software architecture group en1b course 2022_23
http://lomap.mariopdev.com
1 stars 1 forks source link

Access to mongo database #103

Closed uo276670 closed 1 year ago

uo276670 commented 1 year ago

DONE:

Created file MongoService to centralice all access to the database Implemented the logic for the handeling of data inside the database Integrated the corresponding MongoService Calls inside the services (add the review, or the shared locations to the database)

The connection to the database happends without problems but need to test further

TO-FIX:

Right now if we use LocationType inside a schema it gives a compilation problem so I am using a plain String instead The creation of a Blob creates an error because it is reading null

Change the url of the mongo database and create a file to store the password instead of hardcode it

TO-DO:

Creation of endpoint to modify the visibility of a location, the database logic is already implemented Creation of endpoint and hooks for removing a friend from the database, the logic and the hook are already implemented