From d2a3f2cedd7c00d0933222aed9c06b3149aa4db4 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?=
First, let’s create the directory for our application.
Then we need to download Erlang.mk. Either use the following command or download it manually.
We can now bootstrap our application. Since we are going to generate a release, we will also bootstrap it at the same time.
We will modify the Makefile to tell the build system it needs to fetch and compile Cowboy:
Open the src/hello_erlang_app.erl file and add the necessary
code to the start/2
function to make it look like this:
Generate a handler from a template: