All Projects → rnaga → Wordpress Rest Admin

rnaga / Wordpress Rest Admin

Licence: mit
A frontend for admin area of WordPress, using WP REST API and React. It works with Self-Hosted WordPress

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Wordpress Rest Admin

gatsby-wiki
Creating a Knowledgbase using Gatsby.js and React.js (see final product ->
Stars: ✭ 32 (-70.37%)
Mutual labels:  single-page-app, material-ui
React Admin
A frontend Framework for building B2B applications running in the browser on top of REST/GraphQL APIs, using ES6, React and Material Design
Stars: ✭ 18,525 (+17052.78%)
Mutual labels:  material-ui, single-page-app
Admin On Rest
A frontend framework for building admin SPAs on top of REST services, using React and Material Design.
Stars: ✭ 392 (+262.96%)
Mutual labels:  material-ui, single-page-app
Ruui
React's cross-platform UI for Web and Native (Android, iOs)
Stars: ✭ 103 (-4.63%)
Mutual labels:  material-ui
Vip Go Mu Plugins
The development repo for mu-plugins used on the VIP Go platform.
Stars: ✭ 104 (-3.7%)
Mutual labels:  wordpress
Phpcompat
WordPress Plugin: PHP Compatibility Checker
Stars: ✭ 106 (-1.85%)
Mutual labels:  wordpress
Nextjs Wordpress Starter
WebDevStudios Next.js WordPress Starter
Stars: ✭ 104 (-3.7%)
Mutual labels:  wordpress
The Federation.info
Statistics hub for the Fediverse
Stars: ✭ 101 (-6.48%)
Mutual labels:  wordpress
Event Espresso Core
Event Espresso 4 Core for WordPress: Build an Event Ticketing Website Today!
Stars: ✭ 107 (-0.93%)
Mutual labels:  wordpress
Wp Player
WP-Player For WordPress 是一个迷你歌曲播放器,支持多歌曲播放,支持使用虾米歌曲地址,也支持自定义上传音乐。
Stars: ✭ 105 (-2.78%)
Mutual labels:  wordpress
Restricted Site Access
Limit access to visitors who are logged in or allowed by IP addresses. Includes many options for handling blocked visitors.
Stars: ✭ 105 (-2.78%)
Mutual labels:  wordpress
Teahouse Wordpress Theme
🍵 Wordpress blog theme Teahouse
Stars: ✭ 104 (-3.7%)
Mutual labels:  wordpress
Mui Treasury
A collection of ready-to-use components based on Material-UI
Stars: ✭ 1,821 (+1586.11%)
Mutual labels:  material-ui
React Redux Flask
Boilerplate application for a Python/Flask JWT Backend and a Javascript/React/Redux Front-End with Material UI.
Stars: ✭ 1,431 (+1225%)
Mutual labels:  material-ui
Wordplate
WordPlate is a wrapper around WordPress. It's like building any other WordPress website with themes and plugins. Just with sprinkles on top.
Stars: ✭ 1,594 (+1375.93%)
Mutual labels:  wordpress
Wp Query Multiple Taxonomies
WordPress plugin for allowing advanced taxonomy queries.
Stars: ✭ 102 (-5.56%)
Mutual labels:  wordpress
Wp Postviews
Enables you to display how many times a post/page had been viewed.
Stars: ✭ 107 (-0.93%)
Mutual labels:  wordpress
Wp Rest Starter
Starter package for working with the WordPress REST API in an object-oriented fashion.
Stars: ✭ 105 (-2.78%)
Mutual labels:  wordpress
Mediapicker
Easy customizable picker for all your needs in Android application
Stars: ✭ 105 (-2.78%)
Mutual labels:  material-ui
Pentagonfloatingactionbutton
Android property animation - The Value Animator
Stars: ✭ 106 (-1.85%)
Mutual labels:  material-ui

WordPress REST Admin

A frontend for admin area of WordPress, using WP REST API and React. It works with Self-Hosted WordPress.

Alt Screenshot

This project was bootstrapped with Create React App.

Features

  • Login (using JWT WP REST Plugin)
  • Dashboard
  • Posts(List, Edit, Add New, Trash)
  • Pages(List, Edit, Add New, Trash)
  • Media Upload(Images)
  • Categories and Tags
  • Comments
  • Users
  • Profile
  • Settings
  • Code generator to create your own page

Usage

Backend - what needs to be done first

Make sure you have WP REST API and JWP plugin installed in your wordpress

WP REST API

JWT Authentication for WP REST API

git clone and npm start

  • Run these commands just to see how it works
git clone https://github.com/rnaga/wordpress-rest-admin.git .
npm install
npm start

Quick start with docker-compose.yml

  • Use docker-compose to start wordpress-rest-admin along with wordpress and MySQL
git clone https://github.com/rnaga/wordpress-rest-admin.git .
docker-compose up --build

Once all containers are up, visit http://localhost:3000 and login with the following creds

Site URL: http://localhost
Username: demo
Password: demo

Use as a React Component

cd /path/to/your/project
npm install
npm i wordpress-rest-admin
  • and render it
import WPAdmin from 'wordpress-rest-admin/WPAdmin';
import contents from 'wordpress-rest-admin/contents';
import loginLogo from './WordpressLogo.svg';
import headerLogo from './WordpressLogo.png';

...

<WPAdmin
  loginLogo={loginLogo}
  headerLogo={headerLogo}
  defaultContent={defaultContent}
  contents={contents}
/>

See example here

How to create your own page

npm install yo -g
  • clone this repo, and install generator (generator-wordpress-rest-admin)
git clone https://github.com/rnaga/wordpress-rest-admin.git . 
cd ./generator
npm link

There is "generator" directory in this repo. Go under the directory, then run "npm link" as above

  • Go to "src" directory under your React project, and run yo command (Choose your icon from here)
yo wordpress-rest-admin:contents [mypage]

It creates new files(components) under "contents" directory (see blow)

Alt Screenshot

  • Import and pass your new page to WPAdmin component
import mypage from './contents/mypage';

....

<WPAdmin contents={{mypage}} />

Alt Screenshot

  • Update components(List.js, Edit.js and Create.js) as needed to change output

How to import existing pages into your project

This is useful in case you want to modify existing pages

yo wordpress-rest-admin:contents --copy-from=[content]

where "content" is one of the following.

categories  comments  dashboard  pages  posts  media profile  settings  tags  users

See example here

Supported Browsers

By default, the generated project uses the latest version of React.

You can refer to the React documentation for more information about supported browsers.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].