A Simple HTTP server implementation in pure Odin This server is similar to the HTTP server that powers OstrichDB.com
This program was written in an envrironment using the following:
- OS: macOS Sequoia 15.0.1
- Odin version:
dev-2024-11:764c32fd3 - CPU: Apple M2
- RAM: 8GB
*** Results may vary based on your own dev environment setup ***
- Clone repo:
git clone https://github.com/SchoolyB/Odin-HTTP-Server.git- Navigate to root of project
cd path/to/Odin-HTTP-Server- Run
odin run main- Server runs on port:
8080 - There is a basic API layer built into this project.
- The API base is
/api/v1 - You can use the
GETmethod on the/pingand/healthendpoints - You can use the
POSTmethod on the/userendpoint - Example URL:
http://localhost:8080/api/v1/user - The only request handlers that I built out are for
GETandPOST - There are tons of comments to help folks understand :)