https://github.com/fdhhhdjd/node-grpc-oms
💸 This is a simulation order transfer using stripe for systems microservice!
https://github.com/fdhhhdjd/node-grpc-oms
grpc mongodb nodejs rabbitmq stripe-payments
Last synced: 11 months ago
JSON representation
💸 This is a simulation order transfer using stripe for systems microservice!
- Host: GitHub
- URL: https://github.com/fdhhhdjd/node-grpc-oms
- Owner: fdhhhdjd
- Created: 2024-07-08T08:47:24.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-07-09T07:32:00.000Z (over 1 year ago)
- Last Synced: 2025-04-03T23:22:22.901Z (12 months ago)
- Topics: grpc, mongodb, nodejs, rabbitmq, stripe-payments
- Language: JavaScript
- Homepage: https://profile-forme.com
- Size: 1.06 MB
- Stars: 6
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Orders Manager Systems ( Dark and Light)
# Light

# Dark

## Create Orders
```cmd
curl -X POST http://localhost:3000/createOrder \
-H "Content-Type: application/json" \
-d '{"item": "Pizza", "quantity": 2}'
```
## Get Order Status
```cmd
curl -X GET "http://localhost:3000/orderStatus?orderId="
```
## Check stock
```cmd
curl -X GET "http://localhost:3000/checkStock?item=Pizza"
```
## Prepare Order
```cmd
curl -X POST http://localhost:3000/prepareOrder -H "Content-Type: application/json" -d '{"orderId": "", "item": "Pizza", "quantity": 2}'
```
## Process Payment
```cmd
curl -X POST http://localhost:3000/processPayment -H "Content-Type: application/json" -d '{"orderId": "", "amount": 19.99}'
```