UVicMartletplace / martletplace

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

Brent/backend203 get listings endpoint #204

Closed bmachado18 closed 5 days ago

bmachado18 commented 5 days ago

Description

Wrote a test and implemented functionality for a user getting their listings. route is GET /api/listing, where it decodes the jwt token for the users ID. As authentication is not implemented, currently just hard codes a user ID of one - will need another pr later.

Closes #203

How to Test

docker-compose down -v docker-compose up --build -d review database datalayer docker exec -it martletplace_review bash npm test

or uncomment ports in docker-compose and npm test

Checklist