Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/flotiq/flotiq-wordpress-import

Package for importing WordPress posts, pages, authors, categories, posts and media to Flotiq
https://github.com/flotiq/flotiq-wordpress-import

flotiq importer wordpress

Last synced: 12 days ago
JSON representation

Package for importing WordPress posts, pages, authors, categories, posts and media to Flotiq

Awesome Lists containing this project

README

        


Flotiq logo

Wordpress to Flotiq Importer
=========================

Command for importing tags, categories, media, posts and pages from Wordpress to Flotiq.

## Setup for usage

`npm install -g flotiq-wordpress-import`

## Setup for development

Clone this repository:

`git clone https://github.com/flotiq/flotiq-wordpress-import.git`

Enter the directory:

`cd flotiq-wordpress-import`

Install dependencies:

`npm install`

Check settings defined in:

`src\configuration\config.js`

## Usage

### Start project

`flotiq-wordpress-import import [flotiqApiKey] [wordpressUrl]`

or in development:

`node bin/flotiq-wordpress-import import [flotiqApiKey] [wordpressUrl]`

### Parameters

`flotiqApiKey` - API key to your Flotiq account, it must be read and write API key (more about Flotiq API keys in [the documentation](https://flotiq.com/docs/API/))

`wordpressUrl` - full link to your Wordpress site

### Flags

`--json-output`, `-j` - Error and console output will be additionally written into json file named `output.json`.

## Collaboration

If you wish to talk with us about this project, feel free to hop on [![Discord Chat](https://img.shields.io/discord/682699728454025410.svg)](https://discord.gg/FwXcHnX) .

If you found a bug, please report it in [issues](https://github.com/flotiq/flotiq-wordpress-import/issues).

## Errors
To make your life and ours easier, we have prepared an error codes.

### 1XX - Execution error

#### #101
Flotiq API bad response.

#### #301
Problem with adding Content Object.

#### #302
Incorrect Flotiq API key.

#### #400
Incorrect wordpress url.

## NPM publish

To publish a new package in NPM, you need to update the version in the packages.json file and then commit the changes with the message "Release x.y.z".
Where x.y.z is the new version of the package.
Commit about this on the master branch will start building a tag about this version and publishing a new version to npm.