Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/geoffrey1330/mern_ecomm
A full stack mern ecommerce app fully deployed to aws via circleci, cloudformation, ansible and cloudfront
https://github.com/geoffrey1330/mern_ecomm
Last synced: 4 days ago
JSON representation
A full stack mern ecommerce app fully deployed to aws via circleci, cloudformation, ansible and cloudfront
- Host: GitHub
- URL: https://github.com/geoffrey1330/mern_ecomm
- Owner: geoffrey1330
- Created: 2022-07-12T13:25:56.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-11-02T08:51:21.000Z (about 2 years ago)
- Last Synced: 2024-11-17T05:38:57.243Z (2 months ago)
- Language: JavaScript
- Size: 938 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ProShop eCommerce Platform
> eCommerce platform built with the MERN stack & Redux.
> Deployed via CICD (circleci) Frontend(s3 bucket) & Backend (ec2 Instance) with CloudFormation(Infrastructure Provisioning), Ansible (Server Configuration)
> Blue, Green Deployment Implemented with aws cloudfront.## Features
- Full featured shopping cart
- Product reviews and ratings
- Top products carousel
- Product pagination
- Product search feature
- User profile with orders
- Admin product management
- Admin user management
- Admin Order details page
- Mark orders as delivered option
- Checkout process (shipping, payment method, etc)
- PayPal / credit card integration
- Database seeder (products & users)## Usage
### Env Variables
Create a .env file in then root and add the following
```
NODE_ENV = development
PORT = 5000
MONGO_URI = your mongodb uri
JWT_SECRET = 'abc123'
PAYPAL_CLIENT_ID = your paypal client id
```### Install Dependencies (frontend & backend)
```
cd backend
npm install
cd frontend
npm install
```### Run
```
# Run frontend (:3000) & backend (:5000)
cd backend
npm run dev# Run backend only
cd backend
npm run server# Run frontend only
cd frontend
npm start
```## Build & Deploy
```
# Create frontend prod build
cd frontend
npm run build
```
### Seed DatabaseYou can use the following commands to seed the database with some sample users and products as well as destroy all data
```
# Import data
npm run data:import# Destroy data
npm run data:destroy
``````
Sample User Logins[email protected] (Admin)
123456[email protected] (Customer)
123456[email protected] (Customer)
123456
```