Be aware, this is a Beta version, which might have some issues or not work as expected in all browsers.
gulp watch
in the client
container. gulp watch
essentially does the following:wormhole-willam
source filesdocker compose up -d client docker compose run -p 8080:8080 client gulp watch # equivalent command
client
running on the host. To get the containers to connect to be able to connect to the host, we need to add the host's local IP to the environment:./client-e2e/.env
../client-e2e/.env
, insert HOST_IP=<YOUR_IP_HERE>
(you could find your local IP through ifconfig
or similar)# run tests once docker compose run client npm run test # or automatically re-run tests when editing a file docker compose run client npm run test -- --watch # or run individual tests docker compose run client npm run test -- -i client/src/worker/tests/streaming.test.ts
# Run the tests. This would also start the selenium hub if it's not running yet. docker-compose run --rm client-e2e # Once you're done working with the e2e tests, stop the containers running the selenium hub. docker-compose --profile e2e down
client/.env
if it does not exist alreadyMAILBOX_URL="wss://<mailbox server>/v1" RELAY_URL="wss:///<relay server>" # Use the following line for a development build NODE_ENV=development
# Production MAILBOX_URL="wss://<mailbox server>/v1" RELAY_URL="wss:///<relay server>" # Or use the following line instead for a production build NODE_ENV=production
.env
file.client/.env
if it does not exist alreadyAWS_ACCESS_KEY_ID=<YOUR_ACCESS_KEY> AWS_SECRET_ACCESS_KEY=<YOUR_SECRET_ACCESS_KEY> AWS_DEFAULT_REGION=<REGION> S3_BUCKET=<URL> CDF_DISTRIBUTION_ID=<ID> MAILBOX_URL="wss://<mailbox server>/v1" RELAY_URL="wss://<relay server>" NODE_ENV=production # or `development` if deploying to playground
docker-compose run client gulp deploy