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

How to integrate lapis-community in other projects #3

Open
daelvn opened this issue Dec 6, 2018 · 3 comments
Open

How to integrate lapis-community in other projects #3

daelvn opened this issue Dec 6, 2018 · 3 comments

Comments

@daelvn
Copy link

daelvn commented Dec 6, 2018

Is it possible to integrate lapis-community, even if it takes a small amount of work, with other projects? There is no documentation, and it would be a great benefit to get this running. Any luck?
Thanks in advance!

@seclorum
Copy link

I would love to be using Lua to run a community board on the web.

Count this as another vote for some docs, @leafo. If we can at least get a howto that gets a basic site up using lapis-community, maybe some PR's would be inbound shortly thereafter ..

@leafo
Copy link
Owner

leafo commented Jan 6, 2020

streak.club is the only opensource project using lapis-community right now. I don't have time to write docs at the moment, but you can try grepping the repository for places where modules starting with "community" are required

https://github.com/leafo/streak.club

https://github.com/leafo/streak.club/search?q=require+community&unscoped_q=require+community

The necessary components are:

  • Run the migrations with require("community.schema").run_migrations(version)
  • Use the flows in community.flows. inside of your own actions to handle all the crud operations for community related things
  • You have to provide your own views
    • You will have to review the flow code to see what kind of form params are necessary to handle submitting posts/topics/etc.

@seclorum
Copy link

seclorum commented Jan 8, 2020

Thanks, this is very helpful nevertheless, hope you will have a slight bit of attention for future notes, but in the meantime anyway I've gotten a site built locally .. I am having a lot o' fun with the flows, indeed .. (will inform you if we put things online)

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