An example full-stack serverless Flutter app created with SST.
Install the example.
$ npm init serverless-stack --example flutter-app
# Or with Yarn
$ yarn create serverless-stack --example flutter-appSet the deployed API endpoint in Flutter. Create a .env file inside frontend\ with the following content:
DEV_API_URL=OUTPUT_FROM_SST_START
PROD_API_URL=OUTPUT_FROM_SST_DEPLOYReplace OUTPUT_FROM_SST_START with the deployed API endpoint from running yarn run start; and replace OUTPUT_FROM_SST_DEPLOY with that from running yarn sst deploy.
Install the Flutter app.
$ cd frontend
$ flutter runStarts the local Lambda development environment.
Build your app and synthesize your stacks.
Generates a .build/ directory with the compiled files and a .build/cdk.out/ directory with the synthesized CloudFormation stacks.
Deploy all your stacks to AWS. Or optionally deploy, a specific stack.
Remove all your stacks and all of their resources from AWS. Or optionally removes, a specific stack.
Runs your tests using Jest. Takes all the Jest CLI options.
Learn more about the Serverless Stack.