Dart Frog는 Dart로 구축된 빠르고 최소한의 백엔드 프레임워크를 위한 공식 런타임입니다. 고성능과 단순함을 위해 설계되어 개발자들이 깔끔하고 모듈화된 코드로 확장 가능한 서버사이드 애플리케이션을 만들 수 있게 해줍니다. 이 프레임워크는 직관적인 라우팅, 미들웨어 지원 및 Dart 생태계와의 원활한 통합을 통해 개발자 경험을 강조합니다. API 및 서버리스 함수 구축에 적합하며, 안드로이드, iOS, macOS, Windows, 리눅스 등 여러 플랫폼에서 실행 가능해 현대적인 백엔드 개발에 매우 유연합니다.
In order to use Dart Frog you must have the Dart SDK installed on your machine.
Installing 🧑💻
# 📦 Install the dart_frog cli from pub.dev
dart pub global activate dart_frog_cli
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_project
Start the Dev Server 🏁
Next, open the newly created project and start the dev server via:
# 🏁 Start the dev server
dart_frog dev
💡 Tip: By default port 8080 is used. A custom port can be used via the --port option.
Create a Production Build 📦
Create a production build which includes a DockerFile so that you can deploy anywhere:
# 📦 Create a production build
dart_frog build
Create New Routes and Middleware 🛣️
To add new routes and middleware to your project, use the dart_frog new command.
# 🛣️ Create a new route "/hello/world"
dart_frog new route "/hello/world"# 🛣️ Create a new middleware for the route "/hello/world"
dart_frog new middleware "/hello/world"
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!
Extensions 💻
VSCode: extends VSCode with support for Dart Frog and provides tools for effectively managing Dart Frog projects within VSCode.