Getting Started π―
Dart Frog is built on top of shelf and mason and is inspired by many tools including remix.run, next.js, and express.js.
The goal of Dart Frog is to help developers effectively build backends in Dart. Currently, Dart Frog is focused on optimizing the process of building backends which aggregate, compose, and normalize data from multiple sources.
Dart Frog provides a simple core with a small API surface area in order to reduce the learning curve and ramp-up time for developers. In addition, Dart Frog is intended to help Flutter/Dart developers maximize their productivity by having a unified tech stack that enables sharing tooling, models, and more!
Quick Start π
Section titled βQuick Start πβPrerequisites π
Section titled βPrerequisites πβIn order to use Dart Frog you must have the Dart SDK installed on your machine.
Installing π§βπ»
Section titled βInstalling π§βπ»β# π¦ Install the dart_frog cli from pub.devdart pub global activate dart_frog_cliCreating a Project β¨
Section titled βCreating a Project β¨βUse the dart_frog create command to create a new project.
# π Create a new project called "my_project"dart_frog create my_projectStart the Dev Server π
Section titled βStart the Dev Server πβNext, open the newly created project and start the dev server via:
# π Start the dev serverdart_frog devCreate a Production Build π¦
Section titled βCreate a Production Build π¦βCreate a production build which includes a DockerFile so that you can deploy
anywhere:
# π¦ Create a production builddart_frog buildUninstalling ποΈ
Section titled βUninstalling ποΈβTo uninstall Dart Frog completely, the CLI completion files have to be removed before uninstalling.
# π§Ή Uninstalling the Dart Frog CLI completion filesdart_frog uninstall-completion-filesNow, if you installed Dart Frog globally via Pub, Dartβs package manager, you can uninstall Dart Frog using:
# ποΈ Uninstall the Dart Frog CLI from pub.devdart pub global deactivate dart_frog_cliFeature Set β¨
Section titled βFeature Set β¨β| Name | Status |
|---|---|
| Hot Reload β‘οΈ | β |
| Dart Dev Tools βοΈ | β |
| File System Routing π | β |
| Index Routes π | β |
| Nested Routes πͺ | β |
| Dynamic Routes π | β |
| Middleware π | β |
| Dependency Injection π | β |
| Production Builds π·ββοΈ | β |
| Docker π³ | β |
| Static File Support π | β |
| WebSocket Support π | β |
| VSCode Extension π» | β |
| Autogenerated Dart Client Package π¦ | π§ |
| Autogenerated API Documentation π | π§ |