# Tutorials

Lessons that start from an empty file and end with a working router, one step at a time.

Each tutorial is a lesson you follow from start to end. Every step shows the code to write and what it gives, and the build of this site runs every example, so the answers on these pages are the ones patrun gives.

Take the one for the language you use. If you already know what you want to do, the [how-to guides](https://rjrodger.github.io/patrun/how-to/) are shorter.

- [Build your first router](https://rjrodger.github.io/patrun/tutorials/first-router.html): Install patrun, add patterns to a router, and find the data of the pattern that best matches each query, in JavaScript.
- [Build your first router in Go](https://rjrodger.github.io/patrun/tutorials/first-router-go.html): Add patterns to a Go router, and find the data of the pattern that best matches each query.
