This repository contains the source code for my personal website: rmargar.net
It is basically a Go web server that serves static files with my personal dev portolio and a blog section with posts that are stored in a PostgreSQL database. The posts are served as HTML templates and are rendered using Markdown, which allows for easy formatting. It is a kinda over-engineered way of hosting a blog site, but I used it to learn more about the Go language :)
- Build from source:
make build
- Start the DB:
docker compose up -d db
- Run the binary from
./bin/server
, ormake run
Update dependencies:
go mod tidy
Run make test
to run both unit and integration tests. Make sure to have docker running as the integration tests use a PostgreSQL container.
Currently I am hosting the website using CapRover, which makes really easy to deploy containerized applications on any cloud server or similar. A new build of the app is currently triggered after merge to main branch.
- Golang 1.19 or higher
- PostgreSQL
- To build the blog, a Disqus account is needed.