Coder Social home page Coder Social logo

edi's Introduction

Overview

Currently this codebase allows parsing of EDI documents

Supported Documents

  • X12 852

Roadmap

  • X12 850
  • X12 856

This piece of code polls an email address for emails.

  • downloads all the attachments to a file directory ./history/new
  • marks all emails as read
  • converts edi attachments into a csv file
  • moves the attachments to ./history/success if successful
  • moves the attachemt to ./history/fail if the conversion fails
  • uploads the edi csv into a database

This program will run in the background and will continuously perform the above mentioned functions

Configuring

There are two files that will be used for configuring the system

  • config.json
  • config-migrate.json

Logs

All the logs are automatically kept in the logs folder under a file called edi.logs.

Running

To run the program first ensure that node has been setup on the computer running the software.

Download Node

We also want to make sure that the software never fails! So we use PM2. PM2 is a process manager that ensure's the software automatically restarts in case things go wrong. Ensure it's installed: npm install pm2 -g

Then in the edi directory run the following commands: npm install npm run start-prod

If doing a migration you can run npm run reset npm run start-migrate

edi's People

Contributors

hariseldon23 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  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.