This section is for peoples jumping in on an already started project using Wheat as foundation. If you want to start a fresh project, you should probably be in the Creating a new project section.
- About 30 minutes (half that if you've done this before).
- A GitHub account.
- Some knowledge of Git. (I recommend using the Github Desktop App).
- A comand line interface (we will be using Window's Command Prompt).
- XAMPP, any similar solution or straight up PHP (You don't NEED PHP8+ but you should).
- The name of the project (we will use
projectName
).
- On your computer, create a folder named
projectName
. - Download the latest version of GRAV Core + ADMIN.
- Unzip the downloaded Grav archive and put it in you
projectName
folder. - From inside the
grav-admin
folder, cut ✂️ theuser
folder and paste it right next tograv-admin
. - At that point, your project folder should look like this:
mycoolname
grav-admin
user
- Clone the
projectName
theme repo you are working on in the project folder, next to the other ones so it looks like...
mycoolname
grav-admin
grav-theme-projectName
user
- Make sure you switch to the
develop
branch before you start working or create your own feature branch. Do not commit tomaster
since it should only be used for the production-ready version of the theme.
If you followed this guide, your 3 main directories (admin, theme and user) are side by side in our project folder so we'll now want to symlink everything together. You'll have to change the paths bellow to fit with your setup.
Windows:
mklink /D D:\themeName\grav-admin\user D:\themeName\user
mklink /D D:\themeName\user\themes\themeName D:\themeName\grav-theme-themeName
Mac/Linux:
ln -s /Users/userNane/Documents/projectName/user /Users/userNane/Documents/projectName/grav-admin/user
ln -s /Users/username/Documents/projectName/grav-theme-themeName /Users/vincentrouleau/Documents/projectName/user/themes/themeName
Once you've read the instructions and installed everything properly, run bin/grav server
from Grav inside your project projectName/grav-admin
.
If everything goes well, the server should return an IP for you to see your local site. (usually at 127.0.0.1:8000
).
Login into the admin panel, go to Themes
and activate your new theme.