Skip to content
This repository has been archived by the owner before Nov 9, 2022. It is now read-only.

Automattic/rest-api-console2

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
lib
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Console2

A better REST console.

This project has been superceded by https://github.com/Automattic/wp-api-console, which now powers the API console at developer.wordpress.com.

Development

Hacking requires node.js, install node.js for your system. (e.g. brew install node).

To get up and running:

  1. Clone the repository git clone https://github.com/Automattic/rest-api-console2.git

  2. Install dependencies npm install

  3. Run the dev server npm start

Visit http://localhost:4000 in your browser.

Tip: You can change the port using the PORT environment variable:

sudo PORT=80 npm start

WordPress.com's app settings do not allow CORS URI's with ports in them.

Configure

Visit WordPress.com Developer Resources and create an application.

Copy config.sample.json to config.json and use your WordPress.com App ID and Redirect URI for the values.

You will also need to add your host to the CORS whitelist in the Application's settings.

Building

To create a static package you can use anywhere (e.g. Github pages):

npm run build

The static site is located in build/dist/wpcom-console/public along with a tarball.

License

All source code licensed under the MIT open source license.

About

WordPress.com REST API Developer Console - superceded by https://github.com/Automattic/wp-api-console

Resources

License

Stars

Watchers

Forks

Packages

No packages published