Skip to content

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!

In order to use Dart Frog you must have the Dart SDK installed on your machine.

Terminal window
# πŸ“¦ Install the dart_frog cli from pub.dev
dart pub global activate dart_frog_cli

Use the dart_frog create command to create a new project.

Terminal window
# πŸš€ Create a new project called "my_project"
dart_frog create my_project

Next, open the newly created project and start the dev server via:

Terminal window
# 🏁 Start the dev server
dart_frog dev

Create a production build which includes a DockerFile so that you can deploy anywhere:

Terminal window
# πŸ“¦ Create a production build
dart_frog build

To uninstall Dart Frog completely, the CLI completion files have to be removed before uninstalling.

Terminal window
# 🧹 Uninstalling the Dart Frog CLI completion files
dart_frog uninstall-completion-files

Now, if you installed Dart Frog globally via Pub, Dart’s package manager, you can uninstall Dart Frog using:

Terminal window
# πŸ—‘οΈ Uninstall the Dart Frog CLI from pub.dev
dart pub global deactivate dart_frog_cli
NameStatus
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 πŸ“”πŸš§