Skip to content

freshgalangmandiri/freshweb_migration

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Migration Tool

A Node.js utility for migrating WordPress data from MySQL to MongoDB. This project includes models for users, posts, media, tags, and categories, as well as utilities for formatting, queueing, and document normalization. This tool is only used for Fresh Group's web CMS with data that has already been adjusted.

Note

This tool using thread worker for formating and adjust posts from wordpress to Fresh Group's web CMS. Set worker on config for adjust your memory.

Project Structure

migration/
├── .gitignore
├── package.json
└── src/
    ├── config.json
    ├── index.js
    ├── db/
    │   ├── mongo_connection.js
    │   └── mysql_connnection.js
    ├── models/
    │   ├── db_finalizing.js
    │   ├── db_reset.js
    │   ├── media.js
    │   ├── posts.js
    │   ├── term.js
    │   └── users.js
    └── utils/
        ├── formatPw.js
        ├── queue.js
        └── normalize.mongo.doc.js

Setup

  1. Install dependencies:

    npm install
  2. Configure databases:

    • Edit src/config.json with your MySQL and MongoDB credentials.
  3. Run migration:

    npm run migrate

Requirements

  • Node.js
  • MySQL database (WordPress)
  • MongoDB database

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors