Skip to content

rmargar/rmargar.net

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published