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