rmargar / rmargar.net

Repository for my personal website

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

codecov build

rmargar.net

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 :)

Development

  1. Build from source:
make build
  1. Start the DB:
docker compose up -d db
  1. Run the binary from ./bin/server, or make run

Update dependencies:

go mod tidy

Testing

Run make test to run both unit and integration tests. Make sure to have docker running as the integration tests use a PostgreSQL container.

Deployment

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.

Dependencies

  • Golang 1.19 or higher
  • PostgreSQL
  • To build the blog, a Disqus account is needed.

About

Repository for my personal website


Languages

Language:Go 54.5%Language:HTML 22.3%Language:CSS 14.2%Language:Smarty 8.1%Language:Makefile 0.5%Language:Dockerfile 0.5%