- Eleventy: A static site generator that allows you to create dynamic and flexible static websites using various templating languages.
- Tailwind CSS: A highly customizable CSS framework that simplifies designing responsive and visually appealing user interfaces.
- Decap CMS: An intuitive content management system that enables non-technical users to manage website content seamlessly.
Before you begin, ensure you have the following installed:
- Node.js (version 14 or later)
- npm (Node Package Manager)
-
Clone this repository to your local machine:
git clone https://github.com/kindsys/dsc-11ty-cms.git
-
Navigate to the project directory:
cd dsc-11ty-cms
-
Install the project dependencies:
npm install
- Open the
eleventy.js
file and configure template engines, I/O directories, collections, filters, shortcodes, and more.
- Open the
admin/config.yml
file and configure settings such as the content directory, collections, and more.
To start the development server and build your Eleventy project with Tailwind CSS, run:
npm run serve
It first runs the "clean" command to remove the _site directory. Then, it runs the commands that start local development servers using webpack and Eleventy concurrently.
How to set up the local proxy to use the CMS locally:
Before accessing the CMS uncomment local_backend: true
in the admin/config.yml
file and comment out:
backend:
name: git-gateway
branch: main
Next, open a terminal and run the command npx netlify-cms-proxy-server
in another terminal, run the command npm run serve
This should allow you to access the CMS without having to authenticate to use the CMS.
To access the CMS open your web browser and navigate to http://localhost:8080/admin
to access the Decap CMS interface. Here, you can manage your website's content.
When you're ready to deploy, build the site for production:
npm run build:prod
Starts by cleaning the _site directory, then generates optimized assets using webpack, and finally generates optimized static HTML files using Eleventy with production-specific settings.
The DSC website is hosted on Cloudflare Pages. Documentation for this can be found in our member documents.
Only users who have write permissions on this GitHub repository can access Decap CMS.