📄️ Your first Darklang application
We're going to take you through a tutorial to build an entire application that
📄️ Create a HTTP handler
Let's start by using the editor to write an API endpoint that responds to a
📄️ Create a tool in a REPL
REPLs in Darklang are general-purpose coding blocks. They're typically to create
📄️ Save data to a Datastore
In the last section, we made a HTTP request that created a 404. We'll use _the
📄️ Create a daily job with a Cron handler
Now that we're storing requests, we can use a scheduled job (a "Cron", named
📄️ Process background jobs in a Worker
Workers process jobs in the background, ideal for daily reports. They're also
📄️ Extract code into a Function
Next, we'll create the human readable summary of the daily reports. To ensure
📄️ Call an external API
Darklang has built-in standard libraries for working with external HTTP Calls
📄️ Complete your first application
To try out the end-to-end application:
📄️ Handle error messages with the Error Rail
Note: This is a self-contained tutorial and not part of the previous set.
📄️ Next steps
Now that you've completed the first application, you should be able to use