Skip to content

A bare grapesjs Instance served by asimple node/express static webserver

Notifications You must be signed in to change notification settings

Jean-Baptiste-Lasselle/grapejs-server

Repository files navigation

À mettre dans le panier (don't mind that it's just a personal copy/paste, no relation with this repo) :

Build status

https://startbootstrap.com/previews/sb-admin-2/

Grapesjs server

====================================

A bare grapesjs Instance served by asimple node/express static webserver

Release inventory :

You can try that one and share it with our friends with the NodeJS Katacoda playgraound

Build it

https://parceljs.org/getting_started.html

export URI_DE_CE_REPO=https://github.com/Jean-Baptiste-Lasselle/grapejs-server

# -- System : Alpine
# apk update && apk add git tree

# -- System : CentOS
# yum update -y && yum install -y git tree

mkdir -p ~/grapesjs-server
cd /grapesjs-server

git clone $URI_DE_CE_REPO .

chmod +x ./build.sh
./build.sh

Load an HTML5 template

chmod +x ./charger-projet.sh
./charger-projet.sh

Start it (Dev mode)

export OMEGA_PORT=3000
export OMEGA_HOST=0.0.0.0
export OMEGA_BACKLOG=500
export HTML_FILE_TO_LOAD_OMEGA_REALTIVE_PATH=index.html

npm run start

What you get with release 0.0.1

An in Browser MJML Editor, enriched with grapesjs, with its tested bundle procedure npm run bundle , and it will look like :

screeshow 1

screeshow 2

PEtite recette our récupérer le top level name d'une archive zip

unzip -l template-HTML5-current.zip|head -n 7|tail -n 1|awk '{print }'|awk -F '/' '{print }'