Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ProgSnapToolkit Sample Logger

This is a simple web code editor that logs to the ProgSnapToolkit's logging server to demonstrate how it works

Running

Setup:

  1. Make sure you have node instaled and a program that can host a website (e.g. the Live Server VS Code extension)
  2. Run npm install from the project directory
  3. Setup, configure and run your logging server using the ProgSnapToolkit

Running:

  1. Run npm run dev
  2. Host the dist folder with a web server and navigate to it.
  3. As you interact with the online editor, you should see events being logged to your server.

Updating the API

If you change your ProgSnap2 spec, for exmaple to add a new event, you need to also update the logger:

  1. First, with your logging server running, run npm run gen. This will update the API endpoints and their repsective types to match your spec changes.
  2. Optionally, regernerate the body of EventLoggerBase.ts by running progsnap2.spec.gen.gen_client.generate_ts_methods from the ProgSnapToolkit. A sample of this is in test.py. This will generate base methods for logging your new events with the correct parameters.

About

A very basic sample web IDE with logging via the ProgSnapToolkit

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages