Skip to content

NicolasMalburet/exfabrica-builderio

Repository files navigation

A statically generated blog example using Next.js and Builder.io

This example showcases Next.js's Static Generation feature using Builder.io as CMS and editor.

Live Demo

Live demo

Requirements

Before you begin, ensure that you have the following accounts set up:

Getting started with Builder.io :

Step 1 Install the Builder.io cli

npm install @builder.io/cli -g

Step 2 Generate a space

Signup for Builder.io, then go to your organization settings page, create a private key and copy it and supply it for [private-key] below. For [space-name] create a name for your space, such as "Blog"

builder create -k [private-key] -n [space-name] -d

This command when done it'll print your new space's public api key, copy it and add as the value for NEXT_PUBLIC_BUILDER_API_KEY into the .env file

  ____            _   _       _                     _                    _   _ 
| __ )   _   _  (_) | |   __| |   ___   _ __      (_)   ___       ___  | | (_)
|  _ \  | | | | | | | |  / _` |  / _ \ | '__|     | |  / _ \     / __| | | | |
| |_) | | |_| | | | | | | (_| | |  __/ | |     _  | | | (_) |   | (__  | | | |
|____/   \__,_| |_| |_|  \__,_|  \___| |_|    (_) |_|  \___/     \___| |_| |_|

|████████████████████████████████████████| product-footer writing schema.json | 1/1
|████████████████████████████████████████| announcement-bar: writing schema.json | 1/1
|████████████████████████████████████████| category-hero: writing schema.json | 1/1
|████████████████████████████████████████| page: writing schema.json | 2/2


Your new space "blog demo" public API Key: <your new api key>

Copy the created API key and add it to your .env file:

BUILDER_PUBLIC_KEY=<your new api key>

Step 3 Run Next.js in development mode

yarn install
yarn dev

Your blog should be up and running on http://localhost:3000! If it doesn't work, you can post on GitHub discussions.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published