These are the main sources of the Tour of Beam website.
This project relies on generated code for some functionality: deserializers, test mocks, constants for asset files, extracted Beam symbols for the editor, etc.
All generated files are version-controlled, so after checkout the project is immediately runnable. However, after changes you may need to re-run code generation:
cd beam ./gradlew :playground:frontend:playground_components:generateCode cd learning/tour-of-beam/frontend flutter pub run build_runner build --delete-conflicting-outputs
The following command is used to build and serve the frontend app locally:
flutter run -d chrome
To change the Google Project that is used as the backend:
Update Firebase configuration: https://firebase.google.com/docs/flutter/setup?platform=web
In /lib/config.dart, update:
cd playground/frontend/playground_components && flutter pub get && cd - cd playground/frontend/playground_components_dev && flutter pub get && cd - cd learning/tour-of-beam/frontend && flutter pub get && cd -
chromedriver --port=4444# To run in a visible Chrome window: ./gradlew :learning:tour-of-beam:frontend:integrationTest # Headless run without a browser window: ./gradlew :learning:tour-of-beam:frontend:integrationTest -PdeviceId=web-server
flutter pub get
For checks: ./gradlew rat Exclusions for file checks can be added in the Tour of Beam section of this file: beam/build.gradle.kts