Releases and capstone projects
The last part takes a project out of the shell: a release is the folder a server runs, and the networking of OTP is what a service is built on. Both are shown with a program that really runs.
Three capstone projects follow: a command line tool, a small HTTP server on :gen_tcp, and the two of them under a supervisor with tests. The chapter closes with the errors a beginner meets, the packaging and CI commands, and the places to read next.
12.1
Releases
mix release, the folder it writes, the environment it reads, and the start command
Open
12.2
:httpc and :gen_tcp
an HTTP client from OTP, a TCP connection, and the local server it talks to
Open
12.3
Common errors
the messages a beginner meets, each with its cause and its fix
Open
12.4
Capstone: todo CLI
the arguments, the file store, the modules, and the escript that runs
Open
12.5
Capstone: HTTP server
a TCP server, the request line it reads, and the response it writes
Open
12.6
Capstone: supervising the capstone
the CLI and the server as OTP children, with the tests that keep them honest
Open
12.7
Packaging and CI
escript.build, a release, and the commands a pipeline runs
Open
12.8
Where to go next
Phoenix, Ecto and Livebook described and not run, and the next page to read
Open