servant beam realworld example app
1.0.0

一个粘附于Realworld Spec和API的仆人和光束代码库,其中包含现实世界中的示例(Crud,Auth,Advance Staters等)。
该代码库的创建是为了演示由仆人和光束构建的完全刚刚起步的Fullstack应用程序,包括Crud操作,身份验证,路由,分页等。
我们竭尽全力遵守Haskell Community StyleGuides和最佳实践。
有关如何与其他前端/后端一起使用的更多信息,请转到Realworld Repo。
需要注意授权标题格式略有不同,这是这样做的:
┌─────────────────────────┬──────────┬──────────┐
│ │ executed │ failed │
├─────────────────────────┼──────────┼──────────┤
│ iterations │ 1 │ 0 │
├─────────────────────────┼──────────┼──────────┤
│ requests │ 31 │ 0 │
├─────────────────────────┼──────────┼──────────┤
│ test-scripts │ 46 │ 0 │
├─────────────────────────┼──────────┼──────────┤
│ prerequest-scripts │ 17 │ 0 │
├─────────────────────────┼──────────┼──────────┤
│ assertions │ 280 │ 0 │
├─────────────────────────┴──────────┴──────────┤
│ total run duration: 18s │
├───────────────────────────────────────────────┤
│ total data received: 5.77KB (approx) │
├───────────────────────────────────────────────┤
│ average response time: 25ms │
└───────────────────────────────────────────────┘
$ nix-shell
$ cp .envrc.example .envrc
$ direnv allow
$ database/scripts/setup
$ cabal new-test
您可以使用GHCID以观察模式运行这些:
$ dev/watch-tests
看起来像这样的东西:
$ cabal new-run exe:realworld-conduit