anttiviljami / avoinsorsa-gatsby-wordpress

A Gatsby static site using free WordPress on Heroku as headless CMS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Avoinsorsa.fi Gatsby/WordPress

A Gatsby static site using free WordPress on Heroku as headless CMS

Local Development

Install Docker

Install Node.js

Install AWS-CLI

Install Heroku-CLI

Clone this repo and source set up your environment inside the project root.

cp .env.sample .env
source .env

I also recommend installing autoenv, so you don't have to run the source command all the time.

npm install

Start a shell inside Docker. It might take a moment for the images to download and build. This is normal.

npm run shell

Now you can run composer install inside Docker

composer install && exit

Outside the docker shell, you can now start development

npm run dev

You can now navigate to http://localhost:8080/wp-admin to start working with your local WordPress installation.

Or view the gatsby site at http://localhost:8000

About

A Gatsby static site using free WordPress on Heroku as headless CMS

License:GNU General Public License v3.0


Languages

Language:PHP 77.0%Language:Shell 10.5%Language:Dockerfile 6.6%Language:HCL 4.1%Language:JavaScript 1.9%