Whilst TypeScript helps us eliminate most of the silly bugs that vanilla JavaScript would allow, there is still room for mistakes to be made. To aid in the discover of these issues, there is a playground provided within the repository.
Starting the playground
To initialize the playground, simply run npm run playground. You should do this in a separate console window as this is a foreground task. This task will watch your src directory for changes, compiles them, and utilizing the webpack-dev-server, perform module hot swapping. When the command has finished it's first run, it should prompt you to open your browser to http://localhost:8080.
Preparing the playground
When you open the playground in your browser, you will be presented with a form to configure the it. There will be three fields: API Gateway Address, Login (Email Address), and Password. At this time, Login and Password are required.
On successful authentication with your choice of API Gateway instance, the form will be replaced with a green tick and instructions to open DevTools and "start hacking".
Using the playground
As mentioned previous, you need to open your browsers DevTools. From here, you can enter a variety of commands into the console to interact with XEDI.js. A good first command might be retreiving your user record from the Auth api.