Start to make examples
It'll help the developpers a lot if we can add more examples like what actix-web has done: https://github.com/actix/examples
Currently we don't have enough docs. I hope me or anyone else can find time to add them.
But at the same time we can already start to prepare some examples like:
- actix-web + casbin example with fileadapter
- actix-web + casbin example with diesel-adapter
- actix-web + casbin example using CachedEnforcer (default cache) ...
Maybe we can also add some examples on other web frameworks.
I added an repo if anyone wants to contribute.
https://github.com/casbin-rs/examples
I've already started the second option. It's not finished, since I faced some problems in the diesel-adapter. After releasing version 0.3.0 it's more possible to be able to finalize it.
@omid don't hesitate if you have met any problems.
@GopherJ PR is created @ https://github.com/casbin-rs/examples/pull/2
actix-web + casbin example with diesel-adapter, using CachedEnforcer https://github.com/casbin-rs/examples/tree/master/actix-middleware-example