Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/julianpasquale/websockets-client


https://github.com/julianpasquale/websockets-client

Last synced: 21 days ago
JSON representation

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.