Skip to content

Latest commit

 

History

History
73 lines (53 loc) · 2.98 KB

README.md

File metadata and controls

73 lines (53 loc) · 2.98 KB

React-Material-UI-Wordpress

A simple way to get started with React, Meteor, Material-UI and the WordPress api (Fork of TheMeteorChef's Base)

Version

Base Material-UI Version v0.0.0.1
Base Version v4.5.0
Meteor Version v1.3.5.1

What You're Working With

Getting Started

See Meteor Chef's Base

As the projects are essentially the same, see https://themeteorchef.com/base/getting-started/

Clone Repo

git clone https://github.com/acomito/react-material-ui-wordpress.git <directory>

Setup the call to WP API

  • Make sure you have the wordpress api plugin installed on your wordpress website. this youtube video may be helpful
  • go into base-material-ui-wordpress into imports/startup/server/rest2ddp.js (here). Then add your endpoint/url for your blog posts, etc. (see rest2dpp docs for more info)

Run NPM Install

  • run meteor npm install
  • after runnning meteor npm install, sometimes I find it is good to also run regular npm install just in case

Run Start Script

run meteor npm start to fire up the app

Got to LocalHost:3000 and you should be good

  • If you've setup the API on your WordPress site and added the relevant url to the posts call in your meteor app, then you should be pulling in a basic list of blog posts from your WP site.

Other Stuff