Skip to content
This repository has been archived by the owner on Nov 26, 2023. It is now read-only.

02 Local Development Setup

David Saah edited this page Jul 3, 2023 · 2 revisions

Requirements

  • Hugo ($\ge$ 0.113.0 extended version)

  • Nodejs ($\ge$ 20)

    • npm / yarn package manager.
  • Postcss-cli

    npm install -g postcss-cli

Local Environment Setup

1. Clone the repo

git clone https://github.com/CodeReviewShop/blog.git    // using https
git clone [email protected]:CodeReviewShop/blog.git       // using ssh
gh repo clone CodeReviewShop/blog                     // using github-cli

2. Initialise git submodule (for luna theme)

git submodule init

3. Fetch submodule

git submodule update

4. Install theme dependencies

  • Using yarn

    cd themes/hugo-luna-theme
    yarn install --production
  • Using npm

    cd themes/hugo-luna-theme
    npm install --production

5. Start the local dev server

Nagivate to the project's root directory and run the command below

hugo server