This repo contains all of the templates, front-end resources, and a MySQL database backup for “Happy Lager”, a Craft demo site.
You can find out more about Craft at craftcms.com.
Happy Lager takes advantage of several Craft features:
The content in Happy Lager is managed from the following sections:
The News section has two entry types:
This site has the following Matrix fields:
This site has the following relational fields:
This site has the following asset volumes:
You can check out Happy Lager online from demo.craftcms.com.
If you want to install the site locally, follow these instructions:
Download/clone the repo on your computer:
git clone https://github.com/craftcms/demo.git happylager.test
composer install within the clone:
cd happylager.test composer install
.env.example file at the root of the project to
.env, and set its
DB_PASSWORD variables to the correct values. (If you’re on a Mac, you may need to type Command + Shift + . in Finder to show hidden files.)
Ensure that the following files and directories have permissions that will allow PHP to read and write to them:
Run this command in the CLI from your project's root to automatically generate a security key for the site:
php craft setup/security-key
Create a new MySQL database called
happylager, and import
happylager.sql into it.
Create a new virtual host with the hostname
happylager.test that points to the
hosts file to resolve
127.0.0.1, if necessary.
Now point your browser at
http://happylager.test. You should see the Happy Lager homepage.
The Craft Control Panel is located at
http://happylager.test/admin. You can log in with the following credentials: