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.
- Docker
- Docker Compose
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/semantic-agency/craft-demo.git
-
In the project root directory, create a
/plugins
directory (if it doesn't already exist) and download/clone the Translations plugin into it.mkdir plugins && \ cd plugins && \ git clone https://github.com/AcclaroInc/craft-translations.git
-
Run
composer install
within the clone:cd craft-demo && \ composer install
-
Copy the
.env.example
file at the root of the project to.env
. -
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
-
In the project root, run
make up
. This will build and boot up the docker containers. -
In an SQL editor (Sequel Pro, TablePlus, etc.) create a new connection with the details below and import
happylager.sql
into it.Host: 127.0.0.1 Port: 3306 User: admin Password: password
-
Edit your
hosts
file to resolvecraft.local
to127.0.0.1
, if necessary.
Now point your browser at http://craft.local:8080
. You should see the Happy Lager homepage.
The Craft Control Panel is located at http://craft.local:8080/admin
. You can log in with the following credentials:
- Username:
admin
- Password:
password