Getting Started
Quickstart
introduction with socratease infra, you can enable elearning functionalities on your website with just a few lines of javascript code imagine your website is you choose to enable elearning on the path for this, all you have to do is return an html file that initializes the socratease js library you will initialize the library with parameters like the username once the library is initialized, it takes over the navigation within so, for example, if the user initially loads a screen where they can create a quiz, and they click on a button that previews the quiz, the browser's url will automatically change to the preview link so, you will have to just serve one entrypoint to your users minimal example explanation we include the socratease js and css files, and the https //github com/brix/crypto js library (required only for the demo) we include a \<div/> into which the socratease library will inject all elements the clientid and clientsecret are keys you get when you create an account on socratease we are showing the clientsecret key here for demo purposes do not make the client secret key public! do not make the client secret key public! docid 7cy1qkswkezcp719c1vu has information about the user, what screen must be shown, etc hmacpayloadb64 is the https //dinochiesa github io/hmachash/index html of the payload expressed as a json string you will use your clientsecret to calculate the hmac the docid\ y71gy6d17 sulyuo5jwve key has some configuration variables that determine the ui, etc on load, you will initialize the socratease variable with the arguments shown above socratease should then show the component that was requested and load the user's data payload the payload is a dictionary and has https //jsonblob com/881842184975982592