Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nomercy10/ecommerce-micro-services
A basic demo to showcase micro service architecture using NodeJs, Express and MongoDB and the way they can communicate between each other.
https://github.com/nomercy10/ecommerce-micro-services
micro-service microservice microservices-architecture mongo-db postman
Last synced: 29 days ago
JSON representation
A basic demo to showcase micro service architecture using NodeJs, Express and MongoDB and the way they can communicate between each other.
- Host: GitHub
- URL: https://github.com/nomercy10/ecommerce-micro-services
- Owner: Nomercy10
- License: mit
- Created: 2021-03-26T13:45:58.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-05-26T05:24:06.000Z (over 3 years ago)
- Last Synced: 2024-10-10T05:43:14.426Z (29 days ago)
- Topics: micro-service, microservice, microservices-architecture, mongo-db, postman
- Language: JavaScript
- Homepage:
- Size: 24.4 KB
- Stars: 29
- Watchers: 2
- Forks: 14
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Ecommerce micro-services demo
## _A demo to showcase micro-services build using NodeJs, Express & MongoDB_This repo currently, has two micro-services
- Users : A micro-service which has basic user features/functionalities like CRUD and order CRUD
- Orders : A micro-service which has basic order features/functionalities like CRUD order## Features
- GET all orders for a user
- GET single order for a user
- GET single user
- GET all users
- GET all orders for an user
- GET an order for a user
- Create an order for a user
- Create new user
- Create new order for a user
- DEL a single order
- DEL all orders for a user
- DEL user by userId
- DEL all the orders for an user## Tech
- [node.js] - evented I/O for the backend
- [Express] - fast node.js network app framework [@tjholowaychuk]
- [Mongo DB] - great UI boilerplate for modern web appsAnd of course this repo itself is open source on GitHub.
## Installation
### Postman
- Requires Postman to run the APIs
- Use `ecommerce microservice demo.postman_collection.json` from the repo root and import in your postman.#### Users
Requires [Node.js](https://nodejs.org/) v10+ to run.Install the dependencies and devDependencies and start the server.
```sh
cd Users
npm i --save express mongoose body-parser axios nodemon
nodemon Users.js
```#### Orders
Requires [Node.js](https://nodejs.org/) v10+ to run.Install the dependencies and devDependencies and start the server.
```sh
cd Orders
npm i --save express mongoose body-parser axios nodemon
nodemon Orders.js
```## License
MIT
**Free Software, Hell Yeah!**
[node.js]:
[Mongo DB]:
[express]: