Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/julianpasquale/websockets-client
https://github.com/julianpasquale/websockets-client
Last synced: 21 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/julianpasquale/websockets-client
- Owner: JulianPasquale
- Created: 2020-04-23T21:51:55.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-05-02T23:32:57.000Z (over 4 years ago)
- Last Synced: 2024-10-11T23:33:14.716Z (about 1 month ago)
- Language: JavaScript
- Size: 346 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Websocket Client
Basic React app to consume data through a Websocket connection.
Dinamic API routes are requested based on client URL.
## Docker
For run locally:
```bash
docker build -t ws-client --target build-development .docker run --env-file .env.development -p 3000:3000 -it ws-client
```For run in production environment, as static files:
```bash
docker build -t ws-client --target build-production .docker run --env-file .env.production -p 3000:3000 -it ws-client
```Both environmets uses port 3000 in given scrits. It can be easily changed by override cmd command or changing `PORT` variable value in .env file for development.
You can also export another port on run command.