Skip to content

Latest commit

 

History

History

website-client

Client

This client runs as a website for you to interact directly with. This client communicates with the service (in the server folder).

If you just want to use an already deployed version, then you can find one here. You may have to enable mixed content for that site in your browser's settings if the server your friend is hosting does not have SSL (a link that starts with https).

This project was bootstrapped with Create React App.

Docker Setup

docker run --rm -d -p 5000:5000 --name switch-remoteplay-client juharris/switch-remoteplay-client:latest

Dev Setup

Development setup:

yarn install
yarn start

Building the Container

This is mainly if you need to edit the code, otherwise you can use the already published version.

docker build -t switch-remoteplay-client .

To run that container:

docker run --rm -d -p 5000:5000 --name switch-remoteplay-client switch-remoteplay-client:latest

Updating the Public Image

You will need permission to push a new image to Docker Hub.

docker login
docker tag switch-remoteplay-client juharris/switch-remoteplay-client:latest
docker push juharris/switch-remoteplay-client:latest

Linting

Run yarn lint to check for style issues in the code.

Run yarn lint-fix to automaticly correct some style issues in the code.

Learn More

You can learn more in the Create React App documentation.

To learn React, check out the React documentation.