VatsalSin / microscope-backend

Simulation of remote microscope

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Microspoce Backend

This is the backend of the microscope problem which helps simulate a remote microscope.


Requirements

For development, you will only need Node.js and a node global package, and npm installed in your environement.

Node

Install

$ git clone <THIS REPO>
$ cd microscope-backend
$ npm install

Configure app

In the root folder you can edit config.js to change:

  • PORT: Default is set to 4000;
  • MAX_MACHINE: Not being actively used, just created to play with extended version of problem;

Running the project

$ node server.js

Assumptions

Following assumptions were taken while solving the problem:

  • The start point will be (0,0) in CS terms and (1,1) on pathologist slide shown on UI
  • The starting point won't be marked as visited initially, only if we visit it again it will be marked as visited and other operation will happen
  • Machine (in this case backend) is source of truth, if miscofiguration happens at any place (only frontend in this case) will sync with backend.

Reference Diagram

Event Loop FSM Class Interaction Very High Level

About

Simulation of remote microscope


Languages

Language:JavaScript 100.0%