Home

Awesome

Eleventy Web Starter

An opinionated starter template for building static websites using Eleventy. This starter kit is designed to help you quickly set up a modern, fast, and efficient static site with best practices for templating, styling, and performance optimisation.

āœØ Features

šŸ› ļø Tech Stack

šŸš€ Getting Started

Prerequisites

Make sure you have the following installed on your machine:

Installation

  1. Clone the Repository:

    git clone https://github.com/chrissy-dev/eleventy-web-starter.git
    cd eleventy-web-starter
    
  2. Install Dependencies:

    npm install
    

    Or, if using Yarn:

    yarn install
    

Running the Project

Start the local development server:

npm run dev

This command will:

Building for Production

To generate a production-ready build, run:

npm run build

The output will be in the dist folder, optimised and ready for deployment.

šŸ“‚ Project Structure

Here's an overview of the core structure of this project:

eleventy-web-starter/
ā”œā”€ā”€ src/                 # Source files for the project
ā”‚   ā”œā”€ā”€ _data/           # Data files in JSON or JS format
ā”‚   ā”œā”€ā”€ _includes/       # Reusable components
ā”‚   ā”œā”€ā”€ _layouts/        # Reusable layouts
ā”‚   ā”œā”€ā”€ _assets/         # Assets - JS, CSS (Tailwind)
ā”œā”€ā”€ .eleventy.js         # Eleventy configuration file
ā”œā”€ā”€ package.json         # Node dependencies and scripts
ā”œā”€ā”€ tailwind.config.js   # Tailwind Config
ā”œā”€ā”€ postcss.config.js    # PostCSS Config
ā””ā”€ā”€ README.md            # Project documentation

šŸ“œ Available Scripts

šŸŒ Deployment

This starter is optimised for deployment on popular static site hosts. Follow the instructions below for different providers:

Netlify

  1. Click the button below to deploy to Netlify:

    Deploy to Netlify

  2. Configure the build settings:

    • Build Command: npm run build
    • Publish Directory: dist

Vercel

  1. Install the Vercel CLI if not already installed:

    npm install -g vercel
    
  2. Deploy using the Vercel CLI:

    vercel
    
  3. Follow the prompts to complete the deployment.

šŸ¤ Contributing

Contributions, issues, and feature requests are welcome! Feel free to check the issues page.

To contribute:

  1. Fork the repository
  2. Create a new branch (git checkout -b feature-branch)
  3. Commit your changes (git commit -m 'Add a new feature')
  4. Push to the branch (git push origin feature-branch)
  5. Open a Pull Request

šŸ“ License

This project is MIT licensed.

šŸ“§ Contact

If you have any questions or need further assistance, feel free to reach out: