Tutorial

Getting Started with Localess in 5 Minutes

A step-by-step guide to setting up your first Localess project and publishing content in no time.

·
Alex Carter· Developer Advocate
A step-by-step guide to setting up your first Localess project and publishing content in no time.

Localess makes it easy to get a headless CMS up and running in minutes. In this guide, we'll walk through the initial setup, creating your first content schema, and fetching data in your frontend application.

Prerequisites

  • Node.js 18+
  • A Firebase project

Step 1: Install the CLI

npm install -g @localess/cli
localess login

Step 2: Create a Space

Head to the Localess dashboard and create a new Space. A Space is the top-level container for all your content.

Step 3: Define a Schema

Schemas describe the shape of your content. Create a simple page schema with a title and body field.

Step 4: Fetch Content

Use the SDK to fetch content in your app:

const client = getLocalessClient();
const page = await client.getContentBySlug('home');

You're up and running!