Is it possible to build a forum with weweb?

Hi,
We need some organized and managed discussions for our clients. What would be the best/most efficient approach to do it?

Thankful for any ideas about how to approach this subject. We have a full stack dev in our team, so we can do some code but not a lot, due to time limits.

Best regards,
k.

1 Like

yep its totally possible to do that in weweb

Okay, thanks Rayanenocode!
Is it building from scratch, or are there some plugins or templates or what would you suggest?

Regards,
k

I think it would be very fun for an experienced team to build a forum like this one with WeWeb and Supabase. It wouldn’t require too much time to achieve a POC.

You will need a supabase account with the free plan. Install the Supabase and Supabase Auth plugins on your project.

You can also connect a custom backend if you have already one or don’t want to use another Saas product. Or want to self host your data.

Supabase can help you achieve the POC faster if you cant ask your team to code a custom backend.

Create a Posts and Comments table.
Posts (title, authorId)
Comments (content, authorId, postId)

On WeWeb you can create 3 pages

  • Login/Signup (path => /login), for this page we have prebuild template/section
  • Feed/Home (path => /)
  • Post (path => /posts/{{postId|}})

Create also 2 collections

  • Posts → connected to the Posts table, let this one be fetched automatically + preserve on nav
  • Comments → connected to the Comments table with a filter by Post id, disable the auto fetch on this one

On the Post page, you will have a workflow on page load, the workflow will fetch comments collection, the comments collection has the filter Post id bound to the current params of the page (/posts/54 for example), so it will fetch the comments related to the given post

You can add a rich text input on the Post page, so the user can send new comment on the post.

You will have more works to do if you want to allow to edit the comments/posts, but it will be a first POC where you can read and write between WeWeb and Supabase :slight_smile:

1 Like

Thanks @Alexis ! You know you are worth your weight in gold, right?

greetings
k.

2 Likes

As Alexis mentioned, building this is pretty fast and straoghtforward. Then the timeline of it depends on the complexity you add to it.