A sample site for CraftQuest's course Flexible Twig Templates with Craft.
Before following along with the course, you need to make sure you have the sample site running locally. Here are the steps:
- Clone the repository locally.
git clone git@github.com:CraftQuest/downlink.git
- In the project root, install the dependencies with Composer.
composer install
- Create an
.envfile based on the.env.examplefile.cp .env.example .env
- Set up your localhosting to run the site. This will depend on what you use but the instructions below are for Craft Nitro 2.
Follow the prompts to setup the site. You'll want to use a database and a current version of PHP. This site runs Craft 3.6+.
nitro add
- Import the starter database
nitro db import db/downlink--2021-03-02-200340--v3.6.7.sql
- Check that the site is running at the hostname you specified when setting up Nitro.
To access the Control Panel, visit [yourhostname]/admin.
- Username: admin
- Password: password