logo
  • Start here
  • Episodes
  • Articles
  • Log in
  • Sign up

Building a router and handling static assets

Topics:
Meta
Web Frameworks
Router
Cowboy Server

This episode is part 3 in the Zero to Framework (building Alchemist Camp) series:

  • Part 1 Making a site with just the Cowboy web server
  • Part 2: Deploying with Nanobox (which no longer exists 😢)
  • Part 3: this page
  • Part 4: A minimal Plug.Conn clone to handle 404s
  • Part 5: Adding EEx templates to a Cowboy web server
  • Part 6: Putting an OTP app in our OTP app (pro)
  • Part 7: Creating controllers for an Elixir web server
  • Part 8: Creating a DSL for our router

Building on top of our very simple Cowboy server from part 1, we create a router so it's easier to add pages. Then we add functionality to handle static assets. Finally, we take advantage of that sweet, sweet 1-step deploy process we built in part 2.

Source code of the repo is available for members on the page for Part 7!

Share

Request a free email course
Back to index

4 Comments

Log in to leave a comment

Hey, just to let you know, only premium members can have the source code :/

- danielbiagi · 11 months ago

That's correct. I create more free Elixir screencasts than anyone else by a wide margin, but source code is usually a member's perk, especially for the longer series.

Please understand that those members are literally making it possible for me to make all these free tutorials you're using! Also, nothing was ever taken from you. This tutorial has been up for free on YT for well over a year and I only organized and put the source code online a few weeks ago, at the request of a paying customer.

- alchemist · 11 months ago

Where can I find the source code for this episode?

- adrag · 7 months ago

"Source code of the repo is available for members on the page for Part 7!" I missed that message

- adrag · 7 months ago
Alchemist Camp 2017-2020
Hosted on Digital Ocean
Terms and Conditions