Skip to content

Programming-Steps-Working-Group-2022/progsnap2-browser

Repository files navigation

ProgSnap2 browser

A tool to investigate and possibly annotate datasets that represent student programming processes in ProgSnap2 format.

Usage

The tool can be installed locally to open a single CSV file at a time. Install Node JS (linux packages) first. The following command takes a while to load the CSV into memory and then it should open the tool in browser (http://localhost:3333/).

git clone <the_repository_address>
npm install
npm start <my_dataset/MainTable.csv>

Alternatively, the tool runs on a Mongo database which helps to scale for any number of large datasets. The following commands are required to first, load any desired datasets into the database, and second, start serving from the database.

npm run load <dataset_id> <my_dataset/MainTable.csv> <description.txt>
npm start db

The Mongo database must be installed separately (eg. apt install mongodb). Process environment can override default port and database parameters.

export PORT=3333
export DB="mongodb://127.0.0.1:27017"
export DB_NAME="progsnap2browser"

Development

The aim is to follow recent TypeScript standards and use VS Code.

  • src/types defines types and type checking for csv data
  • src/transform data transformations (unittests exists in test/)
  • src/server an Express backend to serve minimal API over HTTP
  • src/client a client using Lit web components (reactive properties automatically re-render elements as required)

Compile the client for the browser:

npm test
npm run lint
npm run build

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors