Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/colbyfayock/md-to-wp
Upload a directory of markdown files to WordPress
https://github.com/colbyfayock/md-to-wp
Last synced: about 2 months ago
JSON representation
Upload a directory of markdown files to WordPress
- Host: GitHub
- URL: https://github.com/colbyfayock/md-to-wp
- Owner: colbyfayock
- License: mit
- Created: 2021-07-01T23:46:39.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-07-01T23:52:53.000Z (over 3 years ago)
- Last Synced: 2024-10-03T09:24:34.493Z (2 months ago)
- Language: JavaScript
- Homepage:
- Size: 9.77 KB
- Stars: 7
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- project-awesome - colbyfayock/md-to-wp - Upload a directory of markdown files to WordPress (JavaScript)
README
# Markdown to WordPress
An easy way to get a markdown blog to WordPress!
## Getting Started
* Install dependencies
```
npm install
```
* Create a new `.env` file with the following:
```
WP_JSON_ENDPOINT="https://wordpresswebsite.com/wp-json"
WP_USERNAME="[WordPress Username]"
WP_APPLICATION_PASSWORD="[WordPress Application Password]"
POSTS_DIRECTORY="[Location of markdown post files - Ex: /Users/myname/posts ]"
```
* Upload posts
```
node posts.js
```## Setup
### Generating a WordPress Application Password