https://github.com/avivbens/message-transmitter-service
https://github.com/avivbens/message-transmitter-service
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/avivbens/message-transmitter-service
- Owner: Avivbens
- Created: 2022-11-30T16:46:04.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-12-15T14:42:13.000Z (over 1 year ago)
- Last Synced: 2024-12-25T20:07:12.263Z (6 months ago)
- Language: TypeScript
- Size: 179 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# NestJS Transmitter service
## Dependencies
### redis-server package is mandatory
```bash
brew install redis-server
```### ttab package is mandatory
```bash
npm install -g ttab
```
## Init
### run the follow command to init the project
```bash
npm run start:tester
```
## Tetsing
Enter OpenAPI for Node1
Enter OpenAPI for Node2
### Connect to WS via Postman to both nodes:
http://localhost:3001
http://localhost:3002Subscribe to event name:
```
message
```
Use the `create-session-token` endpoint to create session token, use it's value in the `Authorize` button in the top right corner of the OpenAPI page.
Execute the API endpoints as you wish