Giter Site home page Giter Site logo

fileprocessor's Introduction

Nest Logo

A progressive Node.js framework for building efficient and scalable server-side applications.

NPM Version Package License NPM Downloads CircleCI Coverage Discord Backers on Open Collective Sponsors on Open Collective Support us

Description

Nest framework TypeScript starter repository.

Installation

$ npm install

Running the app

# development
$ npm run start

# watch mode
$ npm run start:dev

# production mode
$ npm run start:prod

Test

# unit tests
$ npm run test

# e2e tests
$ npm run test:e2e

# test coverage
$ npm run test:cov

Support

Nest is an MIT-licensed open source project. It can grow thanks to the sponsors and support by the amazing backers. If you'd like to join them, please read more here.

Stay in touch

License

Nest is MIT licensed.

fileprocessor's People

Contributors

dayanro avatar

Watchers

 avatar

fileprocessor's Issues

[Task]: As a user I want to receive a data file in CSV. #2

PROBLEM TO SOLVE AND DETAILS

WHO is the beneficiary/actor, WHAT it does/require and WHY? Add detailed explanations, images, diagrams, and data.

As a User I want to receive a data file in CSV format with a header and move it to a working storage space.

SOLUTION PROPOSAL

What can be done to solve the problem? How it can be solved?

  • Implement the following method receive_file(filename, filelocation) where filename is the name of the file (e.g. data.csv( and filelocation the path where the file is located (e.g. s3://data-bucket/input/UUID/ ).
    It is not necessary to implement the credentials, we will assume that all access is public.

  • This method fetches the file from the given filelocation, and moves it to a different work location than the previous one (e.g. s3://work-bucket/UUID/ )

CONDITIONS OF SATISFACTION

What does success look like? List of conditions that will be checked at the end of the issue to determine that is DONE.

  • As a user I can receive a data file in CSV format.

[Task]: As a user I want to perform data transformation & send a notification.

PROBLEM TO SOLVE AND DETAILS

WHO is the beneficiary/actor, WHAT it does/require and WHY? Add detailed explanations, images, diagrams, and data.

As a User I want to perform data transformation and send a notification to a remote Notifications service.

SOLUTION PROPOSAL

What can be done to solve the problem? How it can be solved?

  • The processing job is to modify the CSV header and write the field names in uppercase.
  • That no value of the CSV fields is null. In the event that one of them is, a notification must be sent with said error (it usually happens that the files received from our clients are of the size of hundreds of GB of data. As sending so much data by HTTP is unfeasible, it can be assumed that the data processing service has direct access to said file).
  • The received file will not be overwritten, but a new one will be written with the change made.
  • This job must be launched asynchronously so as not to block the API for receiving files.

CONDITIONS OF SATISFACTION

What does success look like? List of conditions that will be checked at the end of the issue to determine that is DONE.

  • As a user I can move the new file to the destination.
  • As a user I can notify a remote service of Notifications
  • As a user I can save a file with the metadata of the operation in the metadata repository.

[Feature]: As a user I want to receive a data file in CSV and perform data transformation. #1

PROBLEM TO SOLVE AND DETAILS

WHO is the beneficiary/actor, WHAT it does/require and WHY? Add detailed explanations, images, diagrams, and data.

As a User I want to receive a data file in CSV format with a header, move it to a working storage space and perform data transformation

SOLUTION PROPOSAL

What can be done to solve the problem? How it can be solved?

  • Implement an API that receives the files
  • Generates asynchronous jobs to process them.
  • When a file is received, a notification will be sent to a remote Notifications service.
  • The file processing job has to rewrite the header line fields to uppercase.
  • When finished, it will move the files to a final location and notify a remote service of completion Notifications

CONDITIONS OF SATISFACTION

What does success look like? List of conditions that will be checked at the end of the issue to determine that is DONE.

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.