Skip to main content

Deploying a React site on Contensis

Log in to add to favourites

What is a Contensis Block?

Install the Contensis CLI ๐Ÿค–

Fork the Leif React example ๐Ÿด

Cloning the repo ๐Ÿค

BASH
1
git clone git@github.com:{github-username}/react-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}/react-leif-example.git
BASH
1
cd react-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 ๐Ÿš€

Making a Contensis Block live.

Still need help?

New support request