https://github.com/lk321/api-gateway-moleculer
API Gateway: microservice with nodejs and mongodb
https://github.com/lk321/api-gateway-moleculer
api-gateway api-gateway-moleculer example microservice moleculer moleculer-service moleculerjs mongodb nodejs
Last synced: 10 months ago
JSON representation
API Gateway: microservice with nodejs and mongodb
- Host: GitHub
- URL: https://github.com/lk321/api-gateway-moleculer
- Owner: lk321
- License: mit
- Created: 2020-12-12T22:16:31.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2020-12-24T20:34:38.000Z (about 5 years ago)
- Last Synced: 2025-02-10T05:28:36.925Z (about 1 year ago)
- Topics: api-gateway, api-gateway-moleculer, example, microservice, moleculer, moleculer-service, moleculerjs, mongodb, nodejs
- Language: JavaScript
- Homepage:
- Size: 67.4 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# api-gateway-moleculer
API Gateway: microservice with nodejs and mongodb
## Installation
### Gateway
```sh
$ cd gateway && yarn install && yarn dev
```
### Node1 - Users
```sh
$ cd node1 && yarn install && yarn dev
```
### Node2 - Products
```sh
$ cd node2 && yarn install && yarn dev
```
### Import data to mongodb database (data folder)
Import with [MongoCompass](https://www.mongodb.com/products/compass) is too easy ;*
## APIs
- [Products with population](http://localhost:3000/api/products?populate=author)
- [API Postman 🤖](https://www.postman.com/collections/b7663f45388ec6ffa193)
## Dependencies
- [compression](https://ghub.io/compression): Node.js compression middleware
- [moleculer](https://ghub.io/moleculer): Fast & powerful microservices framework for Node.JS
- [moleculer-db](https://ghub.io/moleculer-db): Moleculer service to store entities in database
- [moleculer-db-adapter-mongo](https://ghub.io/moleculer-db-adapter-mongo): MongoDB native adapter for Moleculer DB service.
- [moleculer-web](https://ghub.io/moleculer-web): Official API Gateway service for Moleculer framework
## Dev Dependencies
- [moleculer-repl](https://ghub.io/moleculer-repl): REPL module for Moleculer
## License
MIT