https://github.com/firmanjs/gateway
Microservice api gateway using nodejs expressjs
https://github.com/firmanjs/gateway
ecmascript6 expressjs javascript nodejs
Last synced: 22 days ago
JSON representation
Microservice api gateway using nodejs expressjs
- Host: GitHub
- URL: https://github.com/firmanjs/gateway
- Owner: firmanJS
- Created: 2019-10-16T11:47:33.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-04T22:49:17.000Z (over 3 years ago)
- Last Synced: 2025-02-02T09:41:35.995Z (about 1 year ago)
- Topics: ecmascript6, expressjs, javascript, nodejs
- Language: JavaScript
- Homepage:
- Size: 4.27 MB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## How To Use
```
- clone servie-barang https://github.com/firmanJS/service-barang.git
- clone service auth https://github.com/firmanJS/Express-Restfull-API-.git
- create database db_api_express postgres
- install redis https://redis.io/download
```
```
# install dependencies
- run npm install
# server runing in port 2000
- run npm run dev
# test running
- run in postman http://localhost:2000/user/ method post username:user password:user
- after login succesfully run in postman localhost:2000/barang with header `x-token-api `
```
## Service Authentication
```
#before performing this action the service must be active
[POST] http://localhost:2000/user/
```
## Service Barang
```
#before performing this action the service must be active
[GET] http://localhost:2000/barang header `x-token-api `
[GET] http://localhost:2000/barang/:id header `x-token-api `
[POST] http://localhost:2000/barang/ header `x-token-api `
[PATCH] http://localhost:2000/barang/:id header `x-token-api `
[DELETE] http://localhost:2000/barang/:id header `x-token-api `
```