Skip to content

CodeBrosss/shopping-site-API

Repository files navigation

shopping-site-API

An API for an e-commerce website. Complete with authentication, authorization and access control Read documentation here

API is hosted live here

How to set up locally.

  • Clone the repo.
  • Run npm install to install dependencies.
  • input environment variables for MONGO_URI, PORT, JWT_SECRET, REFRESH_TOKEN, PAYSTACK_SECRET_KEY, CLOUDINARY_CLOUD_NAME, CLOUDINARY_KEY, CLOUDINARY_SECRET.
  • enter npm run devStart in the terminal to start up the development server.

Technology

  • This API is created using the Node JS language and Express JS framework.
  • It uses MongoDB database.
  • Payments are handled with paystack API.
  • Cloudinary for storing images.

Users are able to:

  • Sign up or create accounts then sign in.
  • Edit their information.
  • Get list of available products for sale and their details.
  • Search for a particular product.
  • Place orders and make online payments to purchase products.
  • like products and add as favourite.

Admin is able to:

  • Upload or create new products and details.
  • Update or edit existing product details.
  • Delete products.
  • Get list of purchases made by users and details.
  • Get all users signed up

About

An API for a crochet shopping site.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors