A Grace Shopper group project by Josh, Andres, and Robert.
JAR is a toy e-commerce website where visitors can browse essential goods during the stay-at-home period.
You must have postgreslq installed before running the application locally. Setup for psql can be found here.
In your terminal, enter the following and go to localhost:8080 to begin interacting with JAR.
npm i
npm run seed
npm run start-dev
Alternatively, you can view a deployed version on heroku here.
When browsing throughout the site, users can view goods altogether, separated by brands, or separated by departments by clicking the hamburger icon at the top left.
When logged in as an admin user, an Admin link appears in the nav bar on the top. Through this link, admin users will have the ability to perform POST and PUT requests for products.
Instead of viewing the site through our beautiful user interface, one can also access certain parts of the site through our API.
For reference, we currently allow GET requests through our API endpoints for brands, departments, images, products, reviews, and users.
// View all brands
`/api/brands`
// View a single brand, including its products
`/api/brands/:id`
// View all departments
`/api/departments`
// View a single department, including its products
`/api/departments/:id`
// View all images
`/api/images`
// View all products
`/api/products`
// View a single product, and its reviews
`/api/products/:id`
// View all reviews
`/api/reviews`
// View all users
`/api/users`
For example, provided is a sample of /api/products
:
favicon from https://favicon.io/emoji-favicons/shopping-cart/
More to come