A sample backend project sample with Firebase auth verification using dart_frog.
☢️ This is a sample project and dart_frog is currently experimental. ☢️
How it works
For both these packages to work properly first you need to do some set-up.
- Create a
.envfile at the root of the project which would include the data below for the postgres connection:
DB_HOST= DB_PORT= DB_NAME= DB_USERNAME= DB_PASSWORD=
Once this is done, don’t forget to get the packages
dart pub get
- And finally this project also uses freezed and json_serializable to generate the model for the frogs.
dart run build_runner build
This should generate
- All done!
Start the server
You can simply run
dart_frog dev. For more information check out dart_frog.
If you are using VS Code, this project includes a launch configuration called
froggy to start the dev server. So you can simply open one of the dart files and press F5 and start the dev server.
Aim of the project
This is a proof of concept to get user authentication through JWTs or Firebase auth in this case using dart_frog and continue with the usual cycle with DB changes.