Coder Social home page Coder Social logo

gatsby-wordpress-docker's Introduction

Gatsby Wordpress Docker ๐Ÿณ example

๐Ÿš€ Quick start

  1. Install Docker

  2. Start developing.

    Just startup all your environment with one of this commands

    docker-compose -f docker-compose.yaml -f docker-compose.dev.yaml up or npm run docker:dev

    Initially it will create image: download and setup layers for NodeJS, Wordpress, MySQL and Gatsby, and startup containers. Further runnings will only startup containers.

  3. To shut down environment just type docker-compose down or npm run docker:down

๐Ÿง What's next?

Setup your local Wordpress :

  1. Make an initial installation
  2. Enable Wordpress plugins ( ACF to REST API, Advanced Custom Fields, Custom Post Type UI, WP REST API Menus )
  3. Setup pretty permalinks Settings => Permalinks => choose 'Post name' and save.

Restart Gatsby container manually or stop/start everything to make Gatsby properly initialized

  • Go to the GrapihQL editor and try out queries:
{
  allWordpressPost {
    edges {
      node {
        id
        slug
        title
        content
        excerpt
        date
        modified
      }
    }
  }
}

Addtinional Info

After wordpress setup in wordpress/engine folder will be content that bind directly to wordpress container. You can easily modify it locally.

!!! Note that wordpress/plugins_for_setup used to copy initial plugins for setup. Don't use this folder after wordpress initialization.

๐ŸŽ“ Useful Links

Looking for more guidance? Full documentation for Gatsby lives on the website. Here are some places to start:

gatsby-wordpress-docker's People

Contributors

stukh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.