The Beam Playground is a web application to run Beam code snippets in a modern browser. This directory holds code to build, test, and deploy the frontend and backend services.
The following requirements are needed for development, testing, and deploying.
- go 1.18+
- flutter
- Go protobuf dependencies (See Go gRPC Quickstart)
- Dart protobuf dependencies (See Dart gRPC Quickstart)
- buf
- Docker
- Docker Compose
- gcloud CLI
- gcloud Beta Commands
- Cloud Datastore Emulator
cd beam
./gradlew playgroundPrecommit
cd beam
./gradlew playground:tasks
cd beam
./gradlew playground:generateProto
cd beam
./gradlew playground:backend:containers:router:dockerComposeLocalUp
cd beam
./gradlew playground:backend:containers:router:dockerComposeLocalDown
Run the method to remove unused code snippets from the Cloud Datastore. Unused snippets are snippets that are out of date. If the last visited date property less or equals than the current date minus dayDiff parameter then a snippet is out of date
cd beam
./gradlew playground:backend:removeUnusedSnippet -DdayDiff={int} -DprojectId={string}
cd beam
./gradlew playground:backend:testWithoutCache
See terraform for details on how to build and deploy the application and its dependent infrastructure.