Skip to content
New: Customize your theme with an AI assistant. Read the guide

Installation Guide

Follow these steps to set up and start using the theme.

Prerequisites

Before you begin, ensure your system meets the following requirements.

Install Node.js

Folex requires Node.js 22.12 or later, in all three editions. Node.js lets you run JavaScript code on your computer. Here’s how to install it based on your operating system:

Follow these steps to install Node.js on Windows:

  1. Download the latest LTS version of Node.js from the official website: Node.js Downloads
  2. Run the installer after it’s downloaded, and follow the on-screen instructions. The installer will guide you through the process.
  3. After installation, open the Command Prompt (search for “cmd” in the Start menu) and verify the installation by typing the following command and pressing Enter:
Terminal window
node -v

If Node.js was installed correctly, you’ll see the version number (e.g., v22.13.1). This confirms that Node.js is ready to use!

💡 Need help? Check out the official Node.js installation guide.


Setting Up Folex

Once Node.js is installed, follow these steps to set up Folex:

Install Dependencies

Navigate to your project directory (the theme’s folder inside themes/, the one with package.json) and run:

Terminal window
npm ci

This installs the exact dependency versions from package-lock.json.

Start the Development Server

To start the local development server and view your site on your computer, run:

Terminal window
npm run dev

🔹 Your site will be available at http://localhost:4321 (or the customized port).

npm run dev also turns src/config/config.toml into the settings file the theme reads, and watches it for changes. To use another port on the Astro edition, run npm run dev -- --port 4322.

If You Have The Tina Or Sanity Edition

  • Tina: npm run dev also starts the editor. Open http://localhost:4321/admin/ and click Enter Edit Mode. You need no account. See Tina.
  • Sanity: npm run dev runs the site with the bundled demo content, and no account. To edit, run npm run setup, then npm run dev:all, and open the Studio at http://localhost:3333. See Sanity.

Create a Production Build

To generate an optimized production build of your site, run the following command in your project root:

Terminal window
npm run build

This will compile your project, optimize assets, and prepare everything for deployment. The output will be located in the dist/ folder by default.

Preview the Production Build

To see how your site will look in the final production version, run:

Terminal window
npm run preview

This builds the site, then serves dist/ locally, so you can see how the theme will look once it’s live on the internet.


🚀 You’re all set! Now you can start customizing Folex to fit your needs. 🎨

Type something to search...