Git Product home page Git Product logo

built-with-roots's Introduction

Built with Roots - a fan site

Image of the site

Help build this fan site of sites built with Roots, the WordPress development kit of choice for making custom sites.

If you just want to learn Roots, this is a good starter project too. Take it apart!

Here's the presentation that was given on May 17, 2017, demoing the project:

Undo the Mess: Use Roots for WordPress Dev
Undo the Mess: Use Roots for WordPress Dev - May 17, 2017

Requirements

This is what you'll need to install to run the stack locally:

For Trellis

Trellis (look in trellis/) is a set of recipes for setting up your servers (using Ansible) and your local development environment (using Vagrant and Virtualbox). Your local dev URL will be built-with-roots.dev when vagrant is running.

For Bedrock

Bedrock (see the site/ directory) organizes your WordPress install in an app-like folder structure with plugins and WordPress itself defined as dependencies.

For the Sage-based theme

This site is built with Sage 9, a theme development kit that works with Sass, ES6-based Javascript using Webpack for builds, Blade templates, Bootstrap 4, and Browsersync. Very cool. Install node and yarn and you'll have what you need to get running. The theme is found in the site/web/app/themes/built-with-roots/ directory.

Installation

Once all the requirements are installed, go through these steps to download Ansible's and the theme's dependencies. Then, start the local dev server.

1. Install Ansible's dependencies

# in the trellis/ directory
$ ansible-galaxy install -r requirements.yml

2. Install the theme's dependencies

# in the site/web/app/themes/built-with-roots/ directory
$ composer install
$ yarn install

3. Build the theme's assets

# in the site/web/app/themes/built-with-roots/ directory
$ yarn run build

4. Start the local dev server

# in the trellis/ directory
$ vagrant up

The first time (or every time you run vagrant reload --provision), this will also install Composer's dependencies.

5. Open the site in your browser

Open built-with-roots.dev

6. Add some content

  1. Create a Home Page with an intro
  2. Assign the Home Page to be the Front Page
  3. Activate the plugins
  4. Add new sites in the Sites admin menu with a URL, and a screenshot. You can find sites built with roots in the Live Example topic of the Roots Discourse Forum.

Theme development

To develop the theme with live-reloading in your browser:

# in the trellis/ directory
$ yarn run start

Then visit the site in localhost:3000

Any changes you make will be injected into the page or will reload the page automatically.

This site uses Vue.js

The list of site is powered by some Vue.js components so we can get scroll-loading, and so we can get used to working with Webpack and the WP REST API.

Vue.js preview

Look in the theme's resources/assets/scripts/vue directory to see those components.

Contributing

Look in the project's Issues for what's next and to pitch in.

  1. Fork this repo
  2. Commit changes to your copy of the repo
  3. Send a pull request

More information on Roots

Head over to roots.io or checkout the forum.

built-with-roots's People

Contributors

pascallaliberte avatar

Watchers

Italo Adler avatar James Cloos 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.