med-material / r-shiny-js-data-capture

Data Capture System in Javascript, integrated into R Shiny
MIT License
1 stars 1 forks source link

Data Capture: Define Internal Architecture #5

Open bastianilso opened 1 year ago

bastianilso commented 1 year ago

The aim of the JS data capture backend is to produce three types of files:

Eventually we should come up with an internal architecture for the data capture.

Before we do this, we need to have prototype Javascript implementations of each of the described data capture types. Also, we should first discuss what would make most sense together in this issue, before we implement a specific structure.

bastianilso commented 1 year ago

Logging System:

General structure of your JS file(s).

script.js: organize the functions such that you have:

global variables are also kept on top. public functions on top. and private function on the bottom.

Add comments above each function describing shortly what the function does.