Giter VIP home page Giter VIP logo

toolbox-test's Introduction

Toolbox test

How to run

Just execute docker-compose up -d and the frontend will be available at http://localhost:8080 and the backend will be available at http://localhost:3000.

Resources

Decisions

  • Didn't use models and services structure because we don't need model validation. We are not storing information.
  • Didn't use routes file because we only have two routes.
  • Didn't get 100% coverage, but it's close enough.
  • Didn't handle properly the errors in the missing files case. What should be the output? Logged for now
  • Didn't move the test variables to another file
  • Used create-react-app to bootstrap the frontend
  • Didn't declutter the generated code from create-react-app
  • Didn't add router because we only have one page
  • Didn'd add styling for each component
  • Didn't refactor the files/data endpoint to take advantage of the files/list endpoint and avoid the double request
  • Didn't create tests for the frontend service, mainly because of time

toolbox-test's People

Contributors

felipe-zapata avatar

Watchers

 avatar

toolbox-test's Issues

Backend boilerplate

Requirements:

  • Docker
  • NodeJS 14
  • Vanilla Javascript
  • ExpressJs
  • Mocha
  • Chai
  • StandardJS

External API call

Add two functions to call an external API with axios

  • getFiles (/secret/files)
  • getFile (/secret/file/{name})

Process getFile response

CSV format taking this into account:

  • Lines with errors (missing information) should be discarded.
  • For every call, create a JSON object with the valid lines following this schema
    { "file": "file1.csv", "lines": [ { "text" :"RgTya", "number": 64075909, "hex": "70ad29aacf0b690b0467fe2b2767f765" }, . . . ] }

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.