### Setup Monitoring and Application
docker-compose up -d --build
### Run Load Test
docker run --net=host -e "K6_OUT=influxdb=http://127.0.0.1:8086/k6" -i loadimpact/k6 run - <test/load.test.js
Or use this libs to expose your local services to internet using secure channel:
- ngrok:
ngrok http 8086
- https://github.com/mmatczuk/go-http-tunnel
- Or use
localtunnel
lib:
npm install -g localtunnel
lt --port 8081 --subdomain "your desired domain name"
k6 run test/load.test.js -e BASE_URL=http://localhost:3001
### After setting the BASE_URL env., it will be accesible in the code as: __ENV.BASE_URL
#### Example: "const BASE_URL = __ENV.BASE_URL"