Check Prerequisites
Before you begin, make sure the following are installed and running on your machine:
- Node.js 20.x — NodeForgeCMS requires Node 20 or later.
- MySQL 8.x — The primary data store for all CMS content and configuration.
- Redis 7 — Used for session caching and performance optimization.
- pnpm — The package manager used across both the server and admin packages.
Clone the Repository and Install Dependencies
Clone the NodeForgeCMS repository, then install dependencies for both the Install server dependencies:Install admin panel dependencies:
server/ and admin/ packages separately.Configure Environment Variables
Create a Edit Replace
.env file in the server/ directory. You can copy the provided example file and fill in your values:server/.env with your local configuration:server/.env
your_password and your_secret_key with your own values. The email fields are optional for local development.Initialize the Database
Create the This creates all required tables and inserts default configuration data, including the initial admin user.
node_forge_cms database in MySQL, then import the bundled SQL schema and seed file:Start the Development Server
From the project root, start the Nuxt4 backend and frontend server:The server will start at http://localhost:3000. You can visit this URL to see the public-facing site frontend.
Start the Admin Panel
Open a second terminal and start the admin panel:The admin dashboard will be available at http://localhost:4000.Log in with the default credentials:
| Field | Value |
|---|---|
| Username | admin |
| Password | admin123 |