W
Wasp5w ago
Sven

best way of implementing blog posts

what is the best way to implement a page where i can post blogs.
2 Replies
kapa.ai
kapa.ai5w ago
Hi @Sven. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave: ---------------------- The best way to implement a blog page in a Wasp project depends on your needs: 1. Use the OpenSaaS Template's Blog (Astro-based):
If you're using the OpenSaaS template, it already comes with a separate blog built using Astro. This is the recommended approach if you just want a blog for yourself. The blog is a separate app (in the blog/ directory) and is typically deployed separately from your main Wasp app (e.g., blog on Netlify, SaaS app on Fly.io) OpenSaaS Blog deployment discussion. This approach is simple and doesn't require a database—blog posts are written as Markdown files. 2. Integrated Blog with Wasp + Prisma:
If you want a more integrated solution (e.g., a CMS where you can create, edit, and manage blog posts from within your app), you would need to define a Post entity in your Wasp data model and use Prisma for storage. You'd then implement CRUD operations and React pages for managing posts. This approach is more flexible and allows for features like user-generated content, but requires more setup. There are discussions about this in the community, and it's noted that building your own integrated blog takes more time compared to using the Astro-based solution TS2305 error on open-saas project. Summary:
- For most users, using the Astro blog that comes with OpenSaaS is the easiest and fastest way. - For a custom, fully integrated blog/CMS, define your own Post entity and CRUD operations in Wasp. If you need a step-by-step guide for either approach, let me know which one you prefer! ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ---------------------- Sorry @Sven, I seem to be having a bit of trouble. Don't worry though, I've pinged my support and they will try to fix me up! :technologist: Perhaps try again in 15mins?
Filip
Filip4w ago
Hey @Sven, there are loads of options. It's impossible to say what the best one is. If you're only goal is blogging, you might even not want to implement it yourself and instead go for something like substack or medium. Wordpress is somewhere in betwen doing that and developing your own blog. If you want to develop your own blog, then I'd say Astro is a good option these days (which is also what OpenSaas comes with).

Did you find this page helpful?