Issue #2782πŸ’¬ AnsweredOpened May 17, 2020by joshbedo0 reactions

Best way to render a page stored in firestore?

Quick answerby artf

Hi Josh, storing and loading templates is described more in details here: https://grapesjs.com/docs/modules/Storage.html#store-and-load-templates Basically, the editor stores 2 types of data: components and style, JSON result of your template. You need these to load back the data in the editor.html and css, HTML/CSS r...

Read full answer below ↓

Question

I've been reading a lot of the documentation and closed issues but I'm a little confused on the best approach to render a page stored in firestore. For example I have a node.js backend using cloud functions and i was thinking i would basically have an API endpoint that pulls the page from the firestore and renders it. Is this possible? I haven't found many examples on how to render pages from the server. In short how can i render a page generated in grapejs? So i can show a preview of the page and also have a live website using something generated by grapejs. ex:

Answers (1)

artfβ€’ June 9, 2020

Hi Josh, storing and loading templates is described more in details here: https://grapesjs.com/docs/modules/Storage.html#store-and-load-templates Basically, the editor stores 2 types of data: components and style, JSON result of your template. You need these to load back the data in the editor.html...

Related Questions and Answers

Continue research with similar issue discussions.

Paid Plugins That Match This Issue

Curated by issue keywords and label relevance to help you ship faster.

View all plugins

Loading paid plugin recommendations...

Free option

Check the open-source GrapesJS plugins on GitHub or run a quick search in our free catalog.

Browse free plugins β†’
Premium option

Premium plugins ship with support, regular updates, and production-ready features β€” save days of integration work.

Browse premium plugins β†’

Related tutorials

In-depth guides on the same topic.

All tutorials β†’

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.