From 3066e3f2ed0be8fd0ea37096637da7a79c171b24 Mon Sep 17 00:00:00 2001 From: tombdf Date: Sun, 23 Mar 2025 00:27:15 +0100 Subject: [PATCH] feat: update README and change default port * Add table of contents to improve README navigation * Update About section to reflect migration from static site to Haskell project * Change default fallback port from 3000 to 8080 when PORT env var is not set --- README.md | 13 ++++++++----- app/Main.hs | 2 +- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index f984485..c47edba 100644 --- a/README.md +++ b/README.md @@ -1,14 +1,17 @@ # Portfolio + +- [Portfolio](#portfolio) + - [About it](#about-it) + - [What about the design ?](#what-about-the-design) + To view the website, click [here](https://hexasec.io). ## About it -This portfolio is a single simple web page, and I intend to keep it that way : -* It is easier for me to maintain -* I pretty much hate web dev, so I have to keep things simple - -The website itself has the sole goal to get to know my projects, my skills and where to contact me, so it doesn't need much. +This portfolio is a Haskell web project, but it used to be a single simple web page, why this change ? +* I discovered Haskell, and I wanted to see how it could be used to handle web dev +* I wanted to protect the portfolio for unwanted (and pretty simple) web scrapping, so I had to put things on server side ## What about the design ? diff --git a/app/Main.hs b/app/Main.hs index cd85a32..e12ef4c 100644 --- a/app/Main.hs +++ b/app/Main.hs @@ -14,7 +14,7 @@ import qualified Routes main :: IO () main = do - port <- read <$> getEnv "PORT" `catch` \(_ :: IOError) -> return "3000" + port <- read <$> getEnv "PORT" `catch` \(_ :: IOError) -> return "8080" putStrLn $ "Starting server on port " ++ show port scotty port $ do middleware logStdoutDev