• Stars
    star
    256
  • Rank 159,219 (Top 4 %)
  • Language Vue
  • Created almost 7 years ago
  • Updated about 6 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

WordPress with Vue, GraphQL, and Node

WordExpress Starter - Vue (AKA VuePress)

WordPress development using Vue, GraphQL, and Express.

Read the Introduction to Vue Press

This repo is a starting off point for working with WordExpress using Vue. Its meant to work with WordExpress Server.

Node Version Requirement

node 6.*
node 7.*

Before Doing Anything Else

Please make sure you have cloned the WordExpress Server repo and have followed the instructions for getting it up and running. WordExpress server provides you with a connection to your WordPress database using GraphQL.

Config

Using the /config/sample-client.config.json file as an example, create a client.json file. As of now, this the config files just point to the url of where your WordExpress Server is running, and which theme in the src/themes directory to use.

Build Setup

yarn
yarn build
yarn start
=======
npm install
npm run build

Development Setup

yarn
yarn serve

Working With WordPress

First Steps

In a fresh WordPress install, you'll need to do a few basic setup items:

  • Create a page called 'Homepage'
  • Create a menu called 'primary-navigation'
  • Install Advanced Custom Fields plugin (see below)

Advanced Custom Fields

VuePress uses some custom post fields. You're best bet is to install the Advanced Custom Fields plugin into your WordPress backend. I've included am acf-export JSON file in this repo that you should import. This will give you just a few basic custom page fields that can be used to give your pages custom layout components.

Layout Components

Currently there are only three layout components - DefaultPage, PageWithHeader, and PostList. In order to set the layout component, simply type the name of the component in the custom field. If there is nothing in the layout component field, DefaultPage will be used.

PageWithHeader

In the backend:

screen shot 2017-12-19 at 8 54 27 pm

Result:

screen shot 2017-12-19 at 9 06 14 pm

PostList

In the backend:

screen shot 2017-12-19 at 9 10 04 pm

Result:

screen shot 2017-12-19 at 9 08 38 pm

License

MIT

More Repositories

1

WordExpress

WordPress using Node, React, GraphQL, and Apollo
JavaScript
1,561
star
2

WordExpressSchema

This package provides a connection to a WordPress database using Sequelize and provides a standard set of GraphQL queries.
JavaScript
149
star
3

WordExpress-Server

A GraphQL server that connects to a WordPress database
JavaScript
60
star
4

wordexpress-starter-react

JavaScript
35
star
5

MeteorCMS

A simple, lightweight CMS for individual blogs or portfolios
CSS
34
star
6

vue-tutorials

JavaScript
29
star
7

Emojinate-old

Emojinate is a story/blogging platform that gives you a string of 20 random emojis that you craft a story around.
JavaScript
23
star
8

react-cssmodules-sass-boilerplate

CSS
16
star
9

WordExpress-Plugin

PHP
11
star
10

Meteor-Setup-Bash-Script

a bash script that setups up a general folder structure for meteor apps
Shell
11
star
11

SoYou

JavaScript
8
star
12

module-docs

an npm package that creates a server to browse node module README files
JavaScript
8
star
13

Orbital-CMS

CMS Built using Meteor JS
JavaScript
8
star
14

WordExpressComponents

JavaScript
7
star
15

ApolloPress

JavaScript
5
star
16

PushQuotes_Extension

JavaScript
4
star
17

meteor-login-package

A custom login package for meteor js
JavaScript
4
star
18

reruled-two

JavaScript
4
star
19

MarvelComicCovers

A simple app built using Meteor that allows the user to compare two comic book covers and pick which one they like best
CSS
4
star
20

gifgame

CSS
4
star
21

dnd-dm-graphql-schema

JavaScript
3
star
22

ReRuled-React

JavaScript
3
star
23

meteor-errors-package

Basic error notification package for Meteor.js - a slightly more advanced version than the Discover Meteor tutorial
JavaScript
3
star
24

Cardtharsis

JavaScript
3
star
25

vs-code-gist-generator

Easily create a Github Gist from selected code in VS Code
JavaScript
2
star
26

wordexpress-tools

JavaScript
2
star
27

PushQuotes_Webpack

JavaScript
2
star
28

react-graphql-boilerplate

JavaScript
2
star
29

HackForChangeDC

JavaScript
1
star
30

rss-reader-server

JavaScript
1
star
31

PushQuotes

JavaScript
1
star
32

deploy-the-jewels

A VS Code extension that executes your deploy script and gives you a random Run The Jewels music video.
JavaScript
1
star
33

emojinate-codestar

GitHub repository for AWS CodeStar Node.js web application emojinate-codes.
JavaScript
1
star
34

newt-qwik

TypeScript
1
star
35

dotfiles

Shell
1
star
36

ahoy

Easy on-boarding for any project
JavaScript
1
star
37

dnd-dm-server

JavaScript
1
star
38

something

1
star
39

reruled

Vue
1
star
40

newt-extension

JavaScript
1
star
41

playlast

Svelte
1
star
42

ahoy-api

backend service for ahoy app
JavaScript
1
star
43

newt

JavaScript
1
star
44

ramsaylanier.github.io

HTML
1
star
45

ArduinoGuitarMod

C++
1
star