An example application built with dart_frog
- Open
Run/Debug Configurations
dialog - Click
+
button and selectShell Script
- Set
Name
tobuild_run
- Set
Script path
toscript/build_run.sh
- Apply changes
- Run
build_run
configuration - Open
Run/Debug Configurations
dialog - Click
+
button and selectDart Command Line App
- Set
Name
torun
- Set
Dart file
to.dart_frog/server.dart
- Set
before launch
tobuild_run
withRun Another Configuration
option - Apply changes
- Run
run
configuration - Open
http://localhost:8080
in browser - Enjoy!
Things to know about the project
- When a new route or middleware is created and removed, the automatically created server file must be recreated with the dart_frog dev command.
- The project will not run unless shared environment variables are defined. FIREBASE_SERVER_KEY, JWT_SECRET_KEY, MONGO_URI
- It is important to run script/build_run.sh before running the project.
- The path to the created server file is: /.dart_frog/server.dart. You can add this path to your run configuration