An API for an e-commerce website. Complete with authentication, authorization and access control Read documentation !COMING SOON -> here
- Clone the repo.
- Run
npm install
to install dependencies. - input environment variables for
MONGO_URI
,PORT
,JWT_SECRET
,REFRESH_TOKEN
,MAIL_USERNAME
,MAIL_PASSWORD
,OAUTH_CLIENTID
,OAUTH_CLIENT_SECRET
,OAUTH_REFRESH_TOKEN
,STRIPE_SECRET_KEY
,STRIPE_PUBLISHABLE_KEY
,GPT_KEY
- enter
npm run dev
in 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.
- Get suggestions in real time from the artificial intelligence service using websockets.
- Sign up or create accounts then sign in, log out.
- Verify their email.
- Edit their information.
- Search products by keywords and filter results. Results will be paginated, 10 products/page
- Get list of available products for sale and their details.
- Search for a particular product by id.
- Get products by categories.
- See product reviews/See by rating.
- Place orders and make online payments to purchase products.
- Others...
- Upload or create new products and details.
- Update or edit existing product details.
- Delete products.
- Update other users access.
- Others...