Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Start to make examples #64

Open
GopherJ opened this issue Mar 1, 2020 · 4 comments
Open

Start to make examples #64

GopherJ opened this issue Mar 1, 2020 · 4 comments

Comments

@GopherJ
Copy link
Member

GopherJ commented Mar 1, 2020

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:

  1. actix-web + casbin example with fileadapter
  2. actix-web + casbin example with diesel-adapter
  3. 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

@omid
Copy link
Contributor

omid commented Mar 2, 2020

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.

@GopherJ
Copy link
Member Author

GopherJ commented Mar 2, 2020

@omid don't hesitate if you have met any problems.

@omid
Copy link
Contributor

omid commented Mar 2, 2020

@GopherJ PR is created @ casbin-rs/examples#2

@hackerchai
Copy link
Member

actix-web + casbin example with diesel-adapter, using CachedEnforcer
https://github.com/casbin-rs/examples/tree/master/actix-middleware-example

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants