Console2
A better REST console. See it in action., (*1)
Development
Hacking requires node.js, install node.js for your system. (e.g. brew install node
)., (*2)
To get up and running:, (*3)
-
Clone the repository
git clone https://github.com/beaucollins/wpcom-console2.git
, (*4)
-
Install dependencies
npm install
, (*5)
-
Run the dev server
npm start
, (*6)
Visit http://localhost:4000 in your browser., (*7)
Tip: You can change the port using the PORT
environment variable:, (*8)
sudo PORT=80 npm start
WordPress.com's App settings do not allow CORS URI's with ports in them., (*9)
Visit WordPress.com Developer Resources and create an application., (*10)
Copy config.sample.json
to config.json
and use your WordPress.com App ID and Redirect URI for the values., (*11)
You will also need to add your host to the CORS whitelist in the Application's settings., (*12)
Building
To create a static package you can use anywhere (e.g. Github pages):, (*13)
npm run build
The static site is located in build/dist/wpcom-console/public
along with a tarball., (*14)
License
All source code licensed under the MIT open source license., (*15)