Setup
This page shows you how to run Decap CMS locally.
Estimated time: 2 minutes.
Before You Begin
Make sure:
- Nocturne is installed — see Installation
- Node.js 18+ is installed
- You have a terminal open in the Nocturne folder
Step 1 — Start the Decap Server
In your first terminal:
npx decap-server
You should see:
Decap CMS Proxy Server listening on port 8081
Leave this terminal running.
First time?
npxmay ask you to installdecap-server. Typeyand press Enter.
Step 2 — Start the Dev Server
Open a second terminal in the same folder:
npm start
You should see:
[SUCCESS] Docusaurus website is running at: http://localhost:3000/
Step 3 — Open the Admin Panel
In your browser:
http://localhost:3000/admin/index.html
You'll see the Decap CMS login screen.
Step 4 — Log In
Click Login. No password required in local mode.
You'll land on the Decap CMS dashboard.
What You See
The left sidebar shows these collections:
- Site Settings — site config, navbar, widgets, homepage
- Static Pages —
src/pages/*.md - Documentation —
docs/* - Docs Categories —
_category_.jsonfiles - Blog Posts —
blog/*
Click any collection to expand it.
Editing Content
- Click a collection
- Click a file
- Edit the fields
- Click Save
The file updates. The site rebuilds. The browser refreshes.
Stopping the Servers
When you're done:
- In Terminal 1:
Ctrl + C - In Terminal 2:
Ctrl + C
Both servers stop cleanly.
Cloud Mode (Optional)
To edit from any device, connect Decap CMS to GitHub.
Option A — Netlify Identity
- Deploy to Netlify
- Enable Identity in Netlify settings
- Enable Git Gateway
- Change
static/admin/config.ymlbackend:
backend:
name: git-gateway
branch: main
Option B — GitHub OAuth
- Create a GitHub OAuth App
- Configure Netlify as the OAuth proxy
- Change
config.ymlbackend:
backend:
name: github
repo: YOUR-USERNAME/nocturne-docs
branch: main
See Decap CMS docs for details.
Troubleshooting
Admin panel is blank
- Check that
npx decap-serveris running - Check that
npm startis running - Open DevTools → Console for errors
"Unrecognized front-matter format"
The Decap server is not running from the correct folder. Restart it inside the Nocturne project root.
Changes don't save
- Check that both terminals are running
- Check the terminal output for errors
- Try a different browser
Port 8081 already in use
Another process is using port 8081. Close it, or restart your computer.
What's Next?
Now let's edit the homepage.