This repo contains all of the templates, front-end resources, and a MySQL DB dump for Happy Lager, a Craft demo site.
You can find out more about Craft on craftcms.com.
Happy Lager takes advantage of several Craft features:
The content in Happy Lager is managed from the following sections:
:information_source: Watch the Section Types video for an overview of the difference between Singles, Channels, and Structures in Craft.
The News section has two Entry Types:
:information_source: Watch the Entry Types video for an overview of Entry Types in Craft.
This site has the following Matrix fields:
:information_source: Watch the Matrix video for an overview of Matrix in Craft.
This site has the following relational fields:
:information_source: Watch the Relations video for an overview of Relations in Craft.
This site has the following Asset Sources;
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/pixelandtonic/happylager.git
Set the permissions on happylager/craft/storage/ to 777
> cd happylager
> chmod 777 craft/storage
Set the permissions on happylager/craft/config/ to 744, 774, or 777 depending on the relationship between the user that Apache/PHP is running as and the user who owns the happylager/craft/config folder. (See the Craft installation docs for details.)
> chmod 774 craft/config
Download the latest version of Craft from craftcms.com, and copy its craft/app/ folder into happylager/craft/.
Create a new MySQL database called happylager, and import happylager.sql into it.
Fill in the proper MySQL credentials in happylager/craft/config/db.php.
Create a new virtual host with the hostname happylager.dev that points to the happylager/public/ folder.
Edit your hosts file to resolve happylager.dev to 127.0.0.1, if necessary.
Now you should be able to point your web browser to http://happylager.dev/admin. You should either see a Craft login screen, or a prompt telling you that some database updates need to be run. If it’s the latter, just click “Finish up”.
Now point your browser at http://happylager.dev. You should see the Happy Lager homepage.
The Craft Control Panel is located at http://happylager.dev/admin. You can log in with the following credentials:
adminpassword