Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lomray-software/microservices
NodeJS microservices
https://github.com/lomray-software/microservices
api authentication authorization docker gateway json-rpc2 microservice microservices nodejs typescript
Last synced: 3 months ago
JSON representation
NodeJS microservices
- Host: GitHub
- URL: https://github.com/lomray-software/microservices
- Owner: Lomray-Software
- License: apache-2.0
- Created: 2021-10-21T15:18:55.000Z (over 3 years ago)
- Default Branch: staging
- Last Pushed: 2024-04-29T12:07:58.000Z (9 months ago)
- Last Synced: 2024-04-29T22:10:26.280Z (9 months ago)
- Topics: api, authentication, authorization, docker, gateway, json-rpc2, microservice, microservices, nodejs, typescript
- Language: TypeScript
- Homepage:
- Size: 11 MB
- Stars: 15
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# NodeJS Microservices based on [microservice-nodejs-lib](https://github.com/Lomray-Software/microservice-nodejs-lib)
![GitHub](https://img.shields.io/github/license/Lomray-Software/microservices)
![GitHub package.json dependency version (dev dep on branch)](https://img.shields.io/github/package-json/dependency-version/Lomray-Software/microservices/dev/typescript/staging)
[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)Staging: [![Build staging](https://github.com/Lomray-Software/microservices/actions/workflows/build.yml/badge.svg?branch=staging)](https://github.com/Lomray-Software/microservices/actions/workflows/build.yml)
Prod: [![Build prod](https://github.com/Lomray-Software/microservices/actions/workflows/build.yml/badge.svg?branch=prod)](https://github.com/Lomray-Software/microservices/actions/workflows/build.yml)## Microservices list:
- [Authentication](microservices/authentication)
- [Authorization](microservices/authorization)
- [Blog](microservices/blog)
- [Configuration](microservices/configuration)
- [Content](microservices/content)
- [Cron](microservices/cron)
- [Files](microservices/files)
- [Gateway](microservices/gateway)
- [Notification](microservices/notification)
- [Payment-stripe](microservices/payment-stripe)
- [Users](microservices/users)
## Use [CLI](https://github.com/Lomray-Software/microservices-cli) to start your own art.## How to investigate it
### Method 1:
Use docker to run all in one command:
```bash
docker-compose -f docker-compose.yml -f docker-compose.ms.yml up
```### Method 2
1. Run `Inverted Json` job server and `postgres` database.
```bash
docker-compose up
```
2. Run `configuration` microservice.
- Through docker:
```bash
docker-compose -f docker-compose.ms.yml up configuration
```
- Through node:
```bash
cd microservices/configuration
npm i
npm run start:dev
```
3. Run other needed microservices (the same actions as in step 2).#### **That is all. Check it:**
```bash
curl -X POST http://127.0.0.1:3000
-H 'Content-Type: application/json'
-d '{"id":"unique-id-1","method":"microservice-name.method","params":{}}'
```see example requests in `http-requests` folder
[Check all available microservices](https://github.com/orgs/Lomray-Software/packages?repo_name=microservices)
Microservices also available like npm packages:
```bash
npm i --save @lomray/microservice-NAME# for e.g.
npm i --save @lomray/microservice-configuration
```## Integration tests
1. Run all microservices
2. Run commands:
```bash
cd tests
npm run test
```