Skip to content

NAsync/graceShopper

Repository files navigation

JAR

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.

Getting Started

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.

Using JAR

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.

dropdown

4M

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. productUpdate

productCreate

For Developers

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: productsAPI

External Resources

favicon from https://favicon.io/emoji-favicons/shopping-cart/

More to come

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages