Skip to content

nouvel-air/humhub-to-discourse-migrator

Repository files navigation

Moleculer

HumHum to Discourse Migrator

This is a very rough migrator, which has been used so far with https://forum.jardiniersdunous.org

Usage

Below are some instructions on how to make it work. Use at your own risk ! ;)

Preparation

Copy the .env file to .env.local and setup your keys and URLs.

In your Discourse instance, go to the Parameters > Rate limits, and remove as many limits as possible (otherwise you will not be able to import many data).

yarn install
yarn run dev

Migrate users

If you want to show the user's location, you will need to install the Location plugin

call space.freshImport

Migrate group members

Create groups in your Discourse instance.

Edit the groupsMapping and groupsNameMapping object in the mappings.js file.

call space.freshImport

Migrate posts

Create categories in your Discourse instance.

Edit the categoriesMapping object in the mappings.js file.

call post.freshImport

Migrate events

If you want to use the calendar, you will need to install the official Calendar plugin

call calendar.freshImport

At the moment, attendees are not migrated. There is a field participants.attending in the HumHub event that contain the list of participants and their display_name.

Migrate wiki pages

call wiki.freshImport

About

HumHub to Discourse Migrator

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published