To run this project you must first install the node dependencies in both the front end and the backend folders with npm install. To run node you must use
node index.js
in the backend folder and for react you must use
npm start
in the frontend end folder where the respective package.json files are located.
This has been difficult for me but I feel like I have leared a lot in this process.
This fork implements database support and support for sessions and authentication
There is an issue with having the javascript web token return from a login POST request to /user/login, though it does print to console.
curl --location --request GET 'localhost:8080/user/50'
curl --location --request POST 'localhost:8080/user' --header 'Content-Type: application/json' --data-raw '{"firstName": "Jason","lastName": "Diaz","email": "jd1225@txstate.edu"}'
2.1) GET /user/:UserId/cart – Gets the user’s cart (ambiguous here - just return the first cart if user has multiple carts)
curl --location --request GET 'localhost:8080/user/50/cart'
curl --location --request DELETE 'localhost:8080/user/50/cart'
curl --location --request POST 'localhost:8080/cart/50/cartItem' --header 'Content-Type: application/json' --data-raw '{"storeItemId":2,"quantity": 10}'
curl --location --request DELETE 'localhost:8080/cart/50/cartItem/3'
curl --location --request GET 'localhost:8080/StoreItem/1'
curl --location --request GET 'localhost:8080/StoreItem?query=tou'