This is my attempt to write a basic web server from scratch. I was inspired to write this after realizing how little I know about web servers despite doing web development every day.
- Handles GET and POST requests.
- Uses servlets to mess with views with ruby.
- Handles ERB views.
- Reads and sets cookies
Open up a terminal and type:
- git clone https://github.com/sayonarauniverse/magic_server.git
- cd magic_server && cd example
- ruby run (or if you're windows, just 'run')
- Open a browser and type in 'localhost:3333'
Todo: Fix SSL