{"id":13759156,"url":"https://github.com/rnaga/wordpress-rest-admin","last_synced_at":"2025-05-10T09:31:58.756Z","repository":{"id":32673162,"uuid":"138543872","full_name":"rnaga/wordpress-rest-admin","owner":"rnaga","description":"A frontend for admin area of WordPress, using WP REST API and React. It works with Self-Hosted WordPress","archived":false,"fork":false,"pushed_at":"2023-01-04T06:48:08.000Z","size":1061,"stargazers_count":164,"open_issues_count":48,"forks_count":45,"subscribers_count":9,"default_branch":"master","last_synced_at":"2024-09-23T02:37:07.701Z","etag":null,"topics":["material-ui","react","redux","responsive-web-design","single-page-app","wordpress","wordpress-rest-api"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rnaga.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-06-25T04:34:17.000Z","updated_at":"2024-05-13T23:55:59.000Z","dependencies_parsed_at":"2023-01-14T21:53:46.532Z","dependency_job_id":null,"html_url":"https://github.com/rnaga/wordpress-rest-admin","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rnaga%2Fwordpress-rest-admin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rnaga%2Fwordpress-rest-admin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rnaga%2Fwordpress-rest-admin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rnaga%2Fwordpress-rest-admin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rnaga","download_url":"https://codeload.github.com/rnaga/wordpress-rest-admin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224866858,"owners_count":17382876,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["material-ui","react","redux","responsive-web-design","single-page-app","wordpress","wordpress-rest-api"],"created_at":"2024-08-03T13:00:47.676Z","updated_at":"2024-11-16T16:30:32.513Z","avatar_url":"https://github.com/rnaga.png","language":"JavaScript","readme":"## WordPress REST Admin\n\nA frontend for admin area of WordPress, using [WP REST API](https://v2.wp-api.org/) and [React](https://reactjs.org/).\nIt works with Self-Hosted WordPress.\n\n[![Alt Screenshot](https://user-images.githubusercontent.com/20383976/43695314-d837f7b0-98ec-11e8-9850-f12d5ec4ae0b.png)](https://vimeo.com/283360988)\n\nThis project was bootstrapped with [Create React App](https://github.com/facebookincubator/create-react-app).\n\n## Features\n\n- Login (using JWT WP REST Plugin)\n- Dashboard\n- Posts(List, Edit, Add New, Trash)\n- Pages(List, Edit, Add New, Trash)\n- Media Upload(Images)\n- Categories and Tags\n- Comments\n- Users\n- Profile\n- Settings\n- [Code generator to create your own page](#how-to-create-your-own-page)\n\n## Usage\n\n### Backend - what needs to be done first\nMake sure you have WP REST API and JWP plugin installed in your wordpress\n#### WP REST API\n- https://v2.wp-api.org/\n- Note that WordPress (4.7 or later) has this installed by default\n\n#### JWT Authentication for WP REST API \n- [Installation instructions](https://wordpress.org/plugins/jwt-auth/#installation)\n- [Tutorial](https://www.youtube.com/watch?v=Mp7T7x1oxDk)\n\n### git clone and npm start\n- Run these commands just to see how it works\n```\ngit clone https://github.com/rnaga/wordpress-rest-admin.git .\nnpm install\nnpm start\n```\n- Visit http://localhost:3000\n\n### Quick start with docker-compose.yml\n- Use docker-compose to start wordpress-rest-admin along with wordpress and MySQL \n```\ngit clone https://github.com/rnaga/wordpress-rest-admin.git .\ndocker-compose up --build\n```\nOnce all containers are up, visit http://localhost:3000 and login with the following creds\n```\nSite URL: http://localhost\nUsername: demo\nPassword: demo\n```\n\n### Use as a React Component\n\n- Create a new React project with [Create React App](https://github.com/facebook/create-react-app)\n- Import package\n```\ncd /path/to/your/project\nnpm install\nnpm i wordpress-rest-admin\n```\n- and render it\n```\nimport WPAdmin from 'wordpress-rest-admin/WPAdmin';\nimport contents from 'wordpress-rest-admin/contents';\nimport loginLogo from './WordpressLogo.svg';\nimport headerLogo from './WordpressLogo.png';\n\n...\n\n\u003cWPAdmin\n  loginLogo={loginLogo}\n  headerLogo={headerLogo}\n  defaultContent={defaultContent}\n  contents={contents}\n/\u003e\n```\nSee example [here](https://github.com/rnaga/wordpress-rest-admin/tree/master/example)\n\n## How to create your own page\n\n- First, install [yeoman](http://yeoman.io/learning/)\n```\nnpm install yo -g\n```\n- clone this repo, and install generator (generator-wordpress-rest-admin)\n\n```\ngit clone https://github.com/rnaga/wordpress-rest-admin.git . \ncd ./generator\nnpm link\n```\nThere is \"generator\" directory in this repo. \nGo under the directory, then run \"npm link\" as above\n\n- Go to \"src\" directory under your React project, and run yo command\n(Choose your icon from [here](https://material.io/tools/icons/?style=baseline))\n```\nyo wordpress-rest-admin:contents [mypage]\n```\nIt creates new files(components) under \"contents\" directory (see blow)\n\n![Alt Screenshot](https://user-images.githubusercontent.com/20383976/42358623-595bb37c-8092-11e8-9d00-6c7e35afd908.png)\n\n- Import and pass your new page to WPAdmin component\n```\nimport mypage from './contents/mypage';\n\n....\n\n\u003cWPAdmin contents={{mypage}} /\u003e\n```\n\n- Start your project, and visit http://localhost:3000\n\n![Alt Screenshot](https://user-images.githubusercontent.com/20383976/42358846-97e87246-8093-11e8-8984-88c66545352c.png)\n\n- Update components(List.js, Edit.js and Create.js) as needed to change output\n\n### How to import existing pages into your project \nThis is useful in case you want to modify existing pages\n```\nyo wordpress-rest-admin:contents --copy-from=[content]\n```\nwhere \"content\" is one of the following.\n```\ncategories  comments  dashboard  pages  posts  media profile  settings  tags  users\n```\n\nSee example [here](https://github.com/rnaga/wordpress-rest-admin/tree/master/example)\n\n## Supported Browsers\n\nBy default, the generated project uses the latest version of React.\n\nYou can refer [to the React documentation](https://reactjs.org/docs/react-dom.html#browser-support) for more information about supported browsers.\n\n","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frnaga%2Fwordpress-rest-admin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frnaga%2Fwordpress-rest-admin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frnaga%2Fwordpress-rest-admin/lists"}