Skip to content

Latest commit

 

History

8 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Servy

A minimal HTTP server built with pure Elixir and the Erlang runtime.

This project is designed to refresh core fundamentals of Elixir, including:

  • processes and concurrency (BEAM model)
  • pattern matching
  • recursion
  • raw TCP sockets via :gen_tcp

No frameworks, no abstractions


Running the Server

Start an interactive shell:

iex -S mix

Then run:

Servy.start(4000)

You should see:

Listening on http://localhost:4000

Try it out

In another terminal:

curl http://localhost:4000/
curl http://localhost:4000/health

What this project demonstrates

  • Handling HTTP over raw TCP
  • Spawning a process per request
  • Parsing request lines manually
  • Building HTTP responses from scratch

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages