An open API service indexing awesome lists of open source software.

https://github.com/mgjules/mgjules-go

My personal space on the web (/◕ヮ◕)/
https://github.com/mgjules/mgjules-go

blog curriculum-vitae cv directus edgedb go golang personal-website unocss

Last synced: 2 months ago
JSON representation

My personal space on the web (/◕ヮ◕)/

Awesome Lists containing this project

README

        

# mgjules-go

[![Go version](https://img.shields.io/github/go-mod/go-version/mgjules/mgjules-go.svg)](https://pkg.go.dev/github.com/mgjules/mgjules-go)

Source code for my [personal website](https://michael.jules.mu).

## Background

This website has seen several iterations through the years and moved across many repositories.

This iteration has for primary goal to experiment with the idea of pre-rendering the various views and serving them from memory. Obviously it is over-engineered but that's the whole point; to experiment without limits (。•̀ᴗ-)✧

## Development

Sample `.env`:
```shell
PROD=false
SERVER_PORT=13337
AUTH_TOKEN=a_very_long_but_obviously_fake_token
STATIC=true
EDGEDB_DSN=edgedb://edgedb:[email protected]/myspace
DIRECTUS_URL=https://directus.mgjules.dev
DIRECTUS_TOKEN=a_very_long_but_obviously_fake_token
```

Run `go` app:
```shell
$ go run .
```

Run `unocss-cli` in `watch` mode:
```shell
$ npm run dev
```

## Production

Sample `.env`:
```shell
PROD=true
SERVER_PORT=80
AUTH_TOKEN=a_very_long_but_obviously_fake_token
STATIC=true
```

```shell
$ go generate
$ go build .
```