Skip to content

mihasket/portfolio

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

88 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Portfolio

This website is made with Go and is designed to replicate the appearance of my Linux desktop environment, mainly @waybar. It is fully synchronized with my @dotfiles, ensuring that any changes I push to my configuration are immediately reflected in the website’s look and feel.

Generate TLS certificate

Using crypto/tls from go

go run /usr/local/go/src/crypto/tls/generate_cert.go --rsa-bits=2048 --host=localhost

You can also use mkcert.

Local build

You can use air for live reloading.

air

Or normal build

# addr flag is optional, defaults to 4000

# Just run the web app
go run ./cmd/web -addr=":8000"

# Or build and run
go build -o ./tmp/main ./cmd/web/
./main -addr="8000"

Docker build

Build using:

docker build -t portfolio .

Run using:

# where <path to your folder with certificates>:/root/tls
docker run -p 8080:8080 -v ./tls:/root/tls portfolio

About

My dev website made in Go.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors