- docker
- dotnetcore
- nodejs
By default the backend runs on port 8000 and the frontend runs on port 8001
docker-compose up
cd backend/ShootTheMoon/ShootTheMoon
dotnet run
cd proxy
docker run -it --rm --name envoy -p 8080:8080 -v $(pwd)/envoy-dev.yaml:/etc/envoy/envoy.yaml envoyproxy/envoy:v1.17-latest
cd frontend/shoot-client
npm install
npm start
This assumes that you've got protoc and the appropriate extension for generating the gRPC-web services installed and in your path. You can find more info at grpc-web github in the code generator plugin section.
cd frontend/shoot-client
protoc -I ../../backend/ShootTheMoon/ShootTheMoon/schema shoot.proto --js_out=import_style=commonjs,binary:src/proto --grpc-web_out=import_style=typescript,mode=grpcwebtext:src/proto
- Sign up for an account
- Create
ngrok_auth.yml
and add contentversion: "2" authtoken: <your_auth_token>
- Run
./run_grok.sh
- Start proxy and backend
- Start your front-end and it will auto-detect if ngrok is in use and update the pointer to the server.
- Navigate to the URL ngrok shows as forwarding to local port 8001/