Welcome to the Chat App Workshop! In this session, you'll be using Google's Antigravity IDE to build a real-time chat application with a Go backend and a Flutter frontend.
- A working Google Cloud account
- Antigravity IDE installed.
- Flutter SDK installed and configured.
- Go installed.
- Docker and Docker Compose installed.
- Android Studio (optional, see ANDROID.md for alternatives)
The project uses Docker Compose to run the Go backend and a Redis instance simultaneously.
- From the project's root directory, start the infrastructure:
The backend server will start and become available at
docker compose up --build -d
http://localhost:8080. (Optional: The backend is configured to respectPORTandREDIS_URLenvironment variables if you deploy or run it manually).
- Navigate to the
frontenddirectory. - In your environment or configuration, set
BACKEND_URLto point to your server (e.g.,http://localhost:8080for local testing). - Fetch dependencies:
flutter pub get
- Run the app:
(Or use your preferred device/emulator)
flutter run -d chrome
The .agents/skills directory contains specialized instructions for Antigravity. You can use these to accelerate your development:
- "Refresh the vibe": Ask Antigravity to improve the Flutter UI.
- "Harden the backend": Ask Antigravity to add security and robustness to your Go server.
- Describe a new feature: Use natural language to ask for new capabilities like "Add message emojis".
- Explore: Understand the boilerplate code.
- Experiment: Use Antigravity to modify the UI and backend
- Build: Make the chat multi-user. The boilerplate code doesn't support that.
- Enhance: Create your own "skills" in
skills.mdto automate repetitive tasks or complex logic. - Improve: Make messages persist somewhere better than in the backend memory -
[]Message{}. - Deploy: Deploy the app to a cloud platform.
- Secure: Add authentication and authorization to the app
- Expand: Make an Android app build!