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
This commit is contained in:
parent
cdaf2c4157
commit
3066e3f2ed
13
README.md
13
README.md
@ -1,14 +1,17 @@
|
||||
# Portfolio
|
||||
<!--toc:start-->
|
||||
- [Portfolio](#portfolio)
|
||||
- [About it](#about-it)
|
||||
- [What about the design ?](#what-about-the-design)
|
||||
<!--toc:end-->
|
||||
|
||||
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 ?
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user