
Demo repository for CraftCMS + DDEV + Vite, including support for GitHub codespaces.
Building with CraftCMS and DDEV just got a whole lot easier and more efficient with the introduction of the ddev-craftcms-vite setup. This innovative demo integrates the functionalities of CraftCMS v5 with DDEV, allowing developers to streamline their local development environment. Designed with the user in mind, it not only simplifies the deployment process but also enhances the front-end experience using nystudio107's craft-vite.
Whether you're running this setup locally or testing it out through Gitpod or Codespaces, you'll discover that it's designed to meet the needs of modern developers. The substantial documentation supports you at every step, ensuring that setup and troubleshooting are manageable even for those not yet familiar with these tools.
Easy Local Setup: Simply install DDEV and run the provided commands. After the initial setup, your workflow becomes as easy as running ddev npm run dev after starting DDEV.
Web Access: Your site becomes instantly accessible through provided hostnames, allowing you to perform real-time testing and development without additional configuration.
Database Management: Quickly import a database with ddev import-db --file=dump.sql.gz or utilize ddev pull to set up a project, making database handling straightforward.
Gitpod Integration: One-click setup allows you to begin development in Gitpod seamlessly. Perfect for collaborative environments or when testing features.
Experimental Codespaces Support: If you're keen on using GitHub Codespaces, this demo supports it, giving you another avenue for development, albeit with a few known bugs to address.
Production Simulation: Easily switch between development and production environments by modifying the environment variables, ensuring your application behaves as expected in various scenarios.
Comprehensive Troubleshooting: The integration includes access to creation logs, facilitating error identification and resolution during setup.
Customizable Frontend Tools: With Vite integration, you can leverage next-gen frontend tooling for enhanced performance, allowing you to edit configurations as necessary to suit your project's needs.

Vite is a build tool that aims to provide a faster and leaner development experience for modern web projects
SCSS is a preprocessor scripting language that extends the capabilities of CSS by adding features such as variables, nesting, and mixins. It allows developers to write more efficient and maintainable CSS code, and helps to streamline the development process by reducing repetition and increasing reusability.
A website that uses Docker for containerization to streamline development, testing, and deployment workflows. This includes features such as containerization of dependencies, automated builds and deployments, and container orchestration to ensure scalability and availability.
PostCSS is a popular open-source tool that enables web developers to transform CSS styles with JavaScript plugins. It allows for efficient processing of CSS styles, from applying vendor prefixes to improving browser compatibility, ultimately resulting in cleaner, faster, and more maintainable code.