chraebsli / grav-template

A Template for Grav Systems

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Grav Template

A template for Grav projects to quickly get started.

Table of Contents

Installation

  1. Clone the repository
  2. Install dependencies
  3. Install Doppler
  4. Install SASS
  5. Configure secrets
  6. (opt) Auto Setup (to automatically install the dependencies and secrets after a pull)

Dependencies

Requirements:

Install the dependencies:

  • Run IDE Task: Install Dependencies
  • Run in Terminal:
    ./scripts/dependencies.sh

Doppler Installation

Requirements:

Install on Windows

scoop bucket add doppler https://github.com/DopplerHQ/scoop-doppler.git
scoop install doppler

Install on Linux

(curl -Ls --tlsv1.2 --proto "=https" --retry 3 https://cli.doppler.com/install.sh || wget -t 3 -qO- https://cli.doppler.com/install.sh) | sudo sh

Login

doppler login

SASS Installation

npm install -g sass

Secrets

Requirements:

  • Doppler
  • UNIX system
  • (alternatively) git bash
doppler setup
./scripts/secrets.sh

Auto Setup

If you pull the repo from GitHub, you can run the following command to automatically install the dependencies and secrets after a pull:

git config --local core.hooksPath .githooks/

Development

Local Server

Requirements:

  • UNIX system
  • (alternatively) git bash
  1. Run the development server:
    bin/grav server
  2. Open the site in your browser: http://localhost:8000

Configuration

Update

To update a branch with the latest changes, execute the update.sh script.

About

A Template for Grav Systems

License:MIT License


Languages

Language:PHP 93.4%Language:SCSS 4.5%Language:Twig 1.4%Language:JavaScript 0.3%Language:CSS 0.2%Language:TypeScript 0.1%Language:Shell 0.1%Language:Logos 0.0%