dart_frog_lint는 Dart의 가벼우면서도 고성능 백엔드 프레임워크인 Dart Frog을 위한 전용 린터 패키지입니다. 최적의 실천 방식, 코드 일관성 및 프레임워크 특화 규칙을 준수하기 위해 철저히 선별된 린트 규칙을 제공합니다. 이러한 규칙을 통합함으로써 개발자는 깨끗하고 신뢰할 수 있으며 자연스러운 Dart Frog 애플리케이션을 유지할 수 있습니다. 이 패키지는 모든 주요 플랫폼을 지원하여 환경 간에 일관된 코드 품질을 보장합니다.
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.