搜索插件、代码仓与 APP 分类

插件详情v1.2.2

dart_frog_auth

Dart Frog 的官方身份验证库 —— 一个快速、轻量的 Dart 后端框架。

AndroidiOSmacOSWindowsLinux
近 30 天下载
4720
喜欢数
37
Pub 分数
160

安装插件

flutter pub add dart_frog_auth

插件介绍

基于插件公开信息、社区数据与项目使用情况整理的选型参考。

Dart Frog Auth 是 Dart Frog 的官方认证库,Dart Frog 是一个轻量级且高性能的 Dart 后端框架。它提供了安全、易于集成的认证机制,专为服务器端应用程序设计。该库以简单和高效为核心理念,支持常见的认证工作流,如登录、注册和会话管理。该库专为与 Dart Frog 生态系统无缝协作而设计,使开发者能够快速实现安全的用户认证,同时不牺牲性能或开发体验。

适合场景

  • 用户登录和注册
  • 会话管理
  • 安全的 API 端点
  • 身份验证中间件
  • 基于令牌的身份验证

主要特点

  • 官方箭毒蛙集成
  • 安全的令牌处理
  • 使用 Dart Frog 轻松设置
  • 支持 JWT 和基于会话的身份验证
  • 最小化样板代码

适合对象

  • 使用 Dart Frog 的后端开发人员
  • 需要快速认证的项目
  • 全栈 Dart 应用
  • 以 API 为先的应用程序
  • 微服务架构

使用建议

  • 需要 Dart Frog 框架
  • 有限的独立使用
  • 依赖于 Dart Frog 的运行时
  • 最适合仅用于服务器端
  • 不适用于仅前端的应用程序

原始 README

以下为关联源码仓库的 README 原文快照,最新内容请访问源码仓库。

Dart Frog Logo Dart Frog Logo

discord dart

ci coverage style: dart frog lint License: MIT Powered by Mason

A fast, minimalistic backend framework for Dart 🎯

Originally developed by Very Good Ventures 🦄

Documentation 📝

For official documentation, please visit https://dart-frog.dev.

Packages 📦

Package Pub
dart_frog pub package
dart_frog_auth pub package
dart_frog_cli pub package
dart_frog_gen pub package
dart_frog_lint pub package
dart_frog_test pub package
dart_frog_web_socket pub package

Quick Start 🚀

Prerequisites 📝

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"

Goals 🎯

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!

Extensions 💻

  • VSCode: extends VSCode with support for Dart Frog and provides tools for effectively managing Dart Frog projects within VSCode.

所属分类

依赖

依赖清单 1 项

源码仓库

使用此插件的项目

暂无相关数据。