AlexFromXD / ecommerce-platform

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ECommerce-Platform

About The Project

Get started

# deploy service
$ docker-compose -f docker/docker-compose.yaml up -d

# rebuild api service
$ docker-compose -f docker/docker-compose.yaml build api-server

Get Document Here


http://localhost:3000/document/#/

swagger

Get Log Here


http://localhost:5601/app/apm/services

apm

Try out API

Get Product List
curl -X GET \
  'http://localhost:3000/product/list?limit=10&> offset=0' \
  -H 'Host: localhost:3000'
Get Product Detail
curl -X GET \
  'http://localhost:3000/product/1/detail' \
  -H 'Host: localhost:3000'
Create Order
curl -X PUT \
http://localhost:3000/order \
-H 'Content-Type: application/json' \
-H 'Host: localhost:3000' \
-H 'x-user-session: b61c9a51-b750-4353-a0f2-faaa1a1d8431' \
-d '{
  "productList": [
    {
      "productID": 1,
      "quantity": 2
    },
    {
      "productID": 2,
      "quantity": 3
    }
  ]
}'

About


Languages

Language:VBA 95.9%Language:TypeScript 3.8%Language:PLSQL 0.2%Language:Shell 0.1%