Skip to content

Commit

Permalink
Documentation and enhancements
Browse files Browse the repository at this point in the history
  • Loading branch information
HetavShah committed May 27, 2023
1 parent 1a6bd67 commit e0588c6
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 3 deletions.
27 changes: 25 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ kubectl create secret generic jwt-secret --from-literal=JWT_KEY=<YOUR SECRET>
```
#### STRIPE_KEY :
``` javascript
kubectl create secret generic jwt-secret --from-literal=JWT_KEY=<YOUR SECRET>
kubectl create secret generic stripe-secret --from-literal=STRIPE_KEY=<YOUR STRIPE SECRET KEY>
```
## Screenshots

Expand All @@ -62,6 +62,7 @@ kubectl create secret generic jwt-secret --from-literal=JWT_KEY=<YOUR SECRET>
- Mark orders as a delivered option for the seller
- Make a product review and rating and calculate a new rating instantly
- Implement an Optimistic concurrency control concept with Mongoose to handle concurrency issues with event flow
- Created an expiration timer for payment completion during which the order gets reserved for a user


## Usage/Examples
Expand All @@ -82,4 +83,26 @@ Pay with Stripe method (recommended)
- Signup as a seller
- Go to product page
- Create new product
- Update product details
- Update product details

## Tech Stack

### Backend

- NodeJS
- Typescript
- MongoDB
- ExpressJS

### Frontend

- ReactJS
- Redux
- Javascript

### CI/CD

- Docker
- Kubernetes
- Github Actions
- GCP (GKE)
2 changes: 1 addition & 1 deletion client/src/screens/OrderListScreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ const OrderListScreen = ({}) => {
<tr key={order.id}>
<td>{order.id}</td>
<td>{order.createdAt.substring(0, 10)}</td>
<td>${order.totalPrice}</td>
<td>{order.totalPrice}</td>
<td>
{order.isPaid ? (
order.paidAt.substring(0, 10)
Expand Down
4 changes: 4 additions & 0 deletions client/src/screens/OrderScreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -215,10 +215,14 @@ const OrderScreen = ({}) => {
{loadingPay && <Loader />}

<StripeCheckout
image="../../public/Project.ico"
name="KarKaushal"
description="E-commerce Platform"
token={handleToken}
stripeKey="pk_test_JMdyKVvf8EGTB0Fl28GsN7YY"
amount={order.totalPrice * 100}
email={userInfo.email}
currency="INR"
/>
</ListGroup.Item>
)}
Expand Down

0 comments on commit e0588c6

Please sign in to comment.