https://github.com/ryelle/wpcom-card-example
An example App demonstrating how to use wpcom.js to get data from the WordPress.com API
https://github.com/ryelle/wpcom-card-example
Last synced: 2 months ago
JSON representation
An example App demonstrating how to use wpcom.js to get data from the WordPress.com API
- Host: GitHub
- URL: https://github.com/ryelle/wpcom-card-example
- Owner: ryelle
- Created: 2016-02-05T02:13:02.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2017-03-19T02:27:30.000Z (over 9 years ago)
- Last Synced: 2025-03-10T18:52:34.794Z (over 1 year ago)
- Language: JavaScript
- Size: 12.7 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
WordPress.com API Example
-------------------------
A demo app for the WordPress.com API. This demonstrates using [wpcom-oauth](https://github.com/Automattic/node-wpcom-oauth) to do client-side authentication, then using [wpcom.js](https://github.com/Automattic/wpcom.js) to grab user & site data.
Want to try it out? Fork this repo (or [download the zip](https://github.com/ryelle/wpcom-card-example/archive/master.zip)), and run these commands:
git clone https://github.com//wpcom-card-example
cd wpcom-card-example
You'll need to create a new client at [developer.wordpress.com](https://developer.wordpress.com/apps/) to get a client ID for the authentication process. You'll create a file called `config/default.json` with your client ID in this format:
{
"clientId": YOUR CLIENT ID
}
Now you can start up the application:
npm install
npm run start
This will install all the required node packages to run the app, and start up a local server. You can view the app at http://localhost:5000.