đ đ Workshop Home Page
This pre-work will walk you through setting up some tools and services that we'll use in the workshop. We won't be doing any coding here, but we will download and run a small piece of sample code to confirm that everything is set up and running correctly.
By the end, you'll have all the components of a test environment so we can start working on Trustly integrations as quickly as possible in the workshop. After each step, you'll be prompted to check the leaderboard back on the home page to confirm your progress.
<aside> âŹď¸
Advanced user? Skip ahead.
If youâre somewhat familiar with APIs and basic JavaScript programming skip down to the đ Steps To Complete.
</aside>
By going through the steps of this guide you will:
đŹÂ If you have any questions at any time, please:
đ°ď¸Â Book a spot or just show up to office hours with me during the week of November 11, 2024 â November 15, 2024
Visual Studio Code (VS Code) is a popular code editor. While you can technically write code in any text editing program, VS Code has useful features and plugins that make developers' lives easier. We'll use some of these features during the workshop, such as tools for interacting with APIs and debugging, which will make writing and managing code much more efficient.
Instructions:
Use the API Client Plugin to make a GET request to confirm itâs working. Weâll use a silly free API to a retrieve a random Chuck Norris joke:
+
signGET
if not already set
https://api.chucknorris.io/jokes/random
Then, make a POST request to our workshop progress tracker API to create a âuserâ record for yourself.
Create a new âRequestâ using the +
button
Set method to POST
Set the URL to https://trustly-product-workshop.up.railway.app/user
Beneath the URL select Body
then select JSON
Copy the object below, change the name to your name and paste it into the text input.
{
"name": "Luke Vance"
}
Click âSendâ and take a note of the âUser IDâ you were assigned in the response. Then check out the leaderboard to see if your name showed up! (You should also have 1 point shown on the right)