Code Monkey home page Code Monkey logo

mpparchiver's Introduction

MPP Archiver

Saves a Microsoft Project XML file to Mongo and/or local JSON file

GitHub GitHub last commit GitHub issues Snyk Vulnerabilities for GitHub Repo GitHub code size in bytes

Configuration

Config File

Save this in the config/default.json file: All are optional and overridden by any command-line parameters

  • input: Input (XML) filename. If this parameter does not exist, a command line parameter must be provided
  • mongo: If this parameter does not exist, Mongo will not be used
    • user: User's username
    • password: User's password
    • host: Hostname or IP where Mongo is running
    • port: Mongo port (does not have a default)
    • options: Optional parameters for the Mongo connection URL
    • database: Database name
    • collection: Base collection name. All collections created will append various suffixes to this string
  • json:
    • output: Path and filename for output JSON file. If this parameter does not exist (and a command line parameter is not provided), a JSON file will not be generated

Command-Line Parameters

  • -V --version: Program version
  • -i --input: Input (XML) filename (required unless specified in the config file; see above)
  • -j --save-json: Filename to save the JSON output to
  • -w --wipe: Remove any existing collections before saving the data to Mongo

Installation and Use

  • git clone https://www.github.com/jolewis-ddn/mppArchiver
  • cd mppArchiver
  • npm i
  • node archive.js (plus any parameters)

Output

  • JSON file: Created by pixl-xml
  • Mongo database records: Parsed JSON content.
    • Numbers and Dates are converted from Strings before saving to the database.
    • All records are tagged with the timestamp when the record was processed/saved

Modules Used

GitHub package.json dependency version (prod) GitHub package.json dependency version (prod) GitHub package.json dependency version (prod) GitHub package.json dependency version (prod) GitHub package.json dependency version (prod)

License

MIT

mpparchiver's People

Contributors

jolewis-ddn avatar balain avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.