Skip to main content

Deploying a Express.js site

Log in to add to favourites

What is a Contensis Block?

Install the Contensis CLI ๐Ÿค–

Fork the Leif Express example ๐Ÿด

Cloning the repo ๐Ÿค

BASH
1
git clone git@github.com:{github-username}/express-leif-example.git
BASH
1
2
git config --global user.name "Your GitHub Username" git config --global user.email "your.email@example.com"
BASH
1
git clone https://github.com/{github-username}/express-leif-example.git
BASH
1
cd express-leif-example

Using your favourite IDE ๐Ÿคฉ

What are GitHub actions? ๐Ÿค”

CLI Setup ๐Ÿ› ๏ธ

BASH
1
contensis -V
BASH
1
contensis
BASH
1
connect {alias}
BASH
1
login {username}
BASH
1
set project {project}
BASH
1
dev init
BASH
1
2
3
git add . git commit -m 'getting started with blocks' git push

Making a change ๐Ÿ”„

BASH
1
npm install
BASH
1
npm start

Task: Change the background colour ๐Ÿ–๏ธ

CSS
1
2
3
body { background-color: #ffffff; }
CSS
1
2
3
4
body { background-color: #ddf8ce; /* Change this colour code */ }

Preview the change locally ๐Ÿ‘๏ธ

Release the block ๐Ÿš€

Release a Contensis Block

Still need help?

New support request