mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-07-10 07:07:19 +00:00
37 lines
1.5 KiB
Markdown
37 lines
1.5 KiB
Markdown
# syncrow_web
|
|
|
|
## Getting Started
|
|
|
|
This project is a starting point for a Flutter application.
|
|
|
|
A few resources to get you started if this is your first Flutter project:
|
|
|
|
- [Lab: Write your first Flutter app](https://docs.flutter.dev/get-started/codelab)
|
|
- [Cookbook: Useful Flutter samples](https://docs.flutter.dev/cookbook)
|
|
|
|
For help getting started with Flutter development, view the
|
|
[online documentation](https://docs.flutter.dev/), which offers tutorials,
|
|
samples, guidance on mobile development, and a full API reference.
|
|
|
|
|
|
## USEFUL COMMANDS
|
|
|
|
- Building for the Web
|
|
- CanvasKit
|
|
- `flutter build web --web-renderer canvaskit -t lib/main_dev.dart --output=build/web_dev` - build for DEVELOPMENT.
|
|
- `flutter build web --web-renderer canvaskit -t lib/main_staging.dart --output=build/web_stg` - build for STAGING.
|
|
- `flutter build web --web-renderer canvaskit -t lib/main.dart --output=build/web` - build for PRODUCTION.
|
|
|
|
- run command: `flutter run -d chrome --target=lib/main_dev.dart`
|
|
|
|
## CDK Deployment
|
|
|
|
• Bootstrap CDK (first time only): npx cdk bootstrap aws://482311766496/me-central-1
|
|
• List available stacks: npx cdk list
|
|
• Deploy web: npx cdk deploy --require-approval never
|
|
• View changes before deploy: npx cdk diff
|
|
• Generate CloudFormation template: npx cdk synth
|
|
• Destroy infrastructure: npx cdk destroy
|
|
• Web infrastructure is configured in infrastructure/web-stack.ts
|
|
• After code changes: build Flutter web app and deploy to hosting service
|