An API for an e-commerce website. Complete with authentication, authorization and access control Read documentation here
API is hosted live here
- Clone the repo.
- Run
npm installto 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 devStartin the terminal to start up the development server.
- 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.
- 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.
- 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