UVicMartletplace / martletplace

Recreating FB Marketplace for Students - UVic SENG499 Capstone Project
1 stars 0 forks source link

Julian/backend82 user endpoints #164

Closed islandj123 closed 1 week ago

islandj123 commented 2 weeks ago

Description

Implemented each API's testing and functionality for user microservice. Cypress was installed and configured as in #144 (after Jest tests were already written, then some code, then Jest tests removed), then tests in Cypress were created and the endpoint code iterated to pass these tests. These endpoints defined within the swagger UI under listings, and within the API list in the SRS doc.

Package file based off of #144

Closes #82

How to Test

Currently npm run test is not working locally, looking into this.

1.

docker-compose down

docker-compose up --build -d listing database datalayer

2. Can either run npm test within the docker containers in docker desktop exec panel, or test the endpoints with something such as postman at http://localhost/api/user

Checklist

Scott-Kenning commented 1 week ago

Code used in #183 along with other new changes, should be reviewed there