polls_api
? 描述
一个使用 dart_frog 的投票 API。
- localhost/polls
- localhost/polls/[id]
☢️ 这是一个示例项目,dart_frog 目前仍处于实验阶段。☢️
⚙️ 使用的技术栈/框架
? 工作原理
本项目使用 postgres 作为其数据库。
- 在项目根目录下创建一个
.env文件,其中包含以下用于 postgres 连接的数据
DB_HOST=
DB_PORT=
DB_NAME=
DB_USERNAME=
DB_PASSWORD=
- 获取项目包
dart pub get
- 全部完成!
? 启动服务器
您可以直接运行 dart_frog dev。有关更多信息,请查看 dart_frog。