Our micro-services folder:
orders - Orders service built with ExpressJSpayments - Payments service, simple AMQP handlersOur config with generic types, enums, interfaces and services folder:
services/amqp.service.ts - Main messaging service used in both servicesProject uses Jest for unit testing and Supertest for E2E tests(only OrdersController).
npm run test
docker-compose build && docker-compose upcurl -X POST http://localhost:3001/orderscurl -X DELETE http://localhost:3001/orders/:id
(Due to random nature of order creation and payment processing, please see logs to
wait for DECLINED payment before canceling order)curl -X GET http://localhost:3001/orders/:idContent type
Image
Digest
Size
396.4 MB
Last updated
over 7 years ago
docker pull vitalyiegorov/rad-orders-api