Code Monkey home page Code Monkey logo

cex.io-test-task's Introduction

Test task for NodeJs developer

Description

Develop a system of three components (Client A, Client B, Server):

  1. Server - serves the requests of Client A and Client B

  2. Client A - sends the data file to the server.

  3. Client B - monitors and verifies the sending of data.

    Step-by-step description of the interaction of system components:

    1. Client application B makes a request to initialize a data loading session, the Server returns a session identifier.
    2. Client B establishes a long-lived connection with the Server (Server-Sent Events / Long-polling / WebSocket) to receive an update of the status of the data loading process by session ID.
    3. Client A uploads data to the Server in several (> 1) parts. At the same time, it transmits the session identifier obtained in step 1.
    4. After downloading all parts of the data, the Server sends to Client B through a long-lived connection the update of the download status (completed) and the checksum for the received file.
    5. Client B reconciles the checksum of the file.

Installation

npm install

npm start

Screenshot Running App

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.