This is the backend part of full e-commerce web app. The main purpose is to help developers start fast when building their own e-commerce web App.
I used the following technologies:
- Strapi CMS
- MongoDB Atlas as Database
- The Strapi CMS contains the following models or collection types
- Categories
- Favorites
- Orders
- Products
- Reviews
- Subscriptions
- Users
- Variants
- Create and add in your
.env
the below keys
DATABASE_URI='YOUR MONGODB ATLAS DATABASE URL'
DATABASE_NAME='YOUR DATABSE NAME'
SENDGRID_API_KEY='YOUR SENDGRID API KEY' (To send email after a product has been ordered)
STRIPE_SK='YOUR STRIPE SECRETE KEY'
ALGOLIA_APPLICATION_ID='YOUR ALGOLIA APP ID'
ALGOLIA_ADMIN_API_KEY='YOUR ALGOLIA ADMIN API KEY'
AWS_ACCESS_KEY_ID='YOUR AWS ACCESS KEY'
AWS_ACCESS_SECRET='YOUR AWS ACCESS SECRET'
AWS_REGION='YOUR AWS REGION'
AWS_BUCKET_NAME='YOUR AWS BUCKET NAME' (For image upload)
- Run the server
- npm install
- npm run develop or strapi develop (if you have the strapi cli)
-
Open your browser and go to http://localhost:1337 to see the result.
-
YOU WILL NEED TO UPLOAD YOUR IMAGES BEFORE RUNNING THE FRONTEND (!!IMPORTANT)