DEV Community

Cover image for Data Persistence / CMS options for personal blog?
Summer Rizzo
Summer Rizzo

Posted on

Data Persistence / CMS options for personal blog?

Hi!

I want to start a personal blogging site from scratch.

I'm using Svelte for the front-end. There needs to be some data persistence, however - I'll have "admin" rights to post my own blogs and persist them. Although a back-end isn't totally necessary, I would like to have one as an exercise.

Right now I think MongoDB would be a good choice (open to other options). Does anyone have any recommendations of headless CMS's or methods for a simple back-end? I don't want to use Rails, as I'm looking to learn something new. I would like to have routing - something like www.blog.com/post-title. There are a lot of options, so I'm open to suggestions and experience :) Here are some options I'm currently considering:

  • Laravel
  • Node/Express
  • Django
  • Lokijs
  • Sanity.io

Would love to have some folks weigh in!

Top comments (7)

Collapse
 
hangindev profile image
Jason Leung 🧗‍♂️👨‍💻 • Edited

I would recommend using a CMS instead of database because CMSs often come with user interface like text editor which would be a headache to build.😛 Also, it could be an exercise as you mentioned for exploring different CMSs in case you have to take client works in the future.

Two popular headless CMSs are Sanity and Strapi. I'm using Sanity with Next.js for my blog and I enjoy using it. You may find starter projects for both CMSs to play with before making a decision.

Here is a Svelte Blog Template powered by Sanity. Note that it uses Sapper, which is like Next.js but for Svelte instead of React. It lets you create routes like www.blog.com/post-title and handles more optimization stuffs.

I couldn't find any official starter template for Strapi yet but I am sure you can find one created by third-party.

Good luck!🍻

Collapse
 
isabelxklee profile image
isabel k. • Edited

a lot of freelance devs i know highly recommend sanity! i started out using contentful for my personal website, but i think sanity has more benefits. let me know if you ever wanna chat about this stuff!! i'm in the flatiron alumni slack. <3

Collapse
 
bajcmartinez profile image
Juan Cruz Martinez

I prefer static website generators like gohugo.io, however if you need a headless CMS strapi.io/ is one of the bests I've tried

Collapse
 
nishantwrp profile image
Nishant Mittal

I've my built my portfolio using Contentful and I like it. Its easy to integrate with other frameworks especially if youre using gatsby or gridsome.

Collapse
 
rizz0s profile image
Summer Rizzo

Thanks everyone!

I am using Svelte on the front-end and writing my own server / back-end API in Go :)

Collapse
 
tcase360 profile image
Tay

I've been recently looking for the same thing, and I found Redwood.js. I'm planning a project with it but haven't yet worked with it.

redwoodjs.com/

Collapse
 
nikki_buttercms profile image
Nikki

Have you tried ButterCMS? It's a headless CMS with a preconfigured blog engine.