This is my no-bullshit personal website. It is literly text, links, and pretty colors. Feel free to fork and use for yourself. You can spice it up with changing the font or using a different color theme.
git clone https://github.com/bradenn/website.git
cd website
npm install
echo "PORT=3000" > .env # This is for development only
Basic:
node app.js
Recommended:
nodemon app.js
I recommend using docker if you have access, even for such a lightweight project.
docker build . -t [your-name-space]/[your-image-name]:[version]
Make sure you are logged in first, then push to Docker hub
docker push [your-name-space]/[your-image-name]:[version]
For something this small, setting up ci may seem trivial. It is. You can at least setup github to build your image. Here is my GitHub Action workflow. .github/workflows/docker-image.yml
Why not just a single html file? That is a wonderful question. With the way I have all of my servers configured, I don't really have a way to serve an HTML file without using more resources than express.