mirror of
https://github.com/yanislav-igonin/micrach
synced 2024-12-22 06:12:33 +03:00
c8c9850625
* add fiber * disable gin, enable fiber * gradually enabling app setup * change env * add routes * add static * connect template engine * add simple load test * make it executable * add rate limiter * doc * connect get threads controller * clean * add compression middleware * add etag middleware * lint * add recover middleware * check isFromLocal method * connect get thread by id controller * connect create thread controller * connect captcha controller * connect update thread controller * rename file * playing with css * connect gateway controller |
||
---|---|---|
.github/workflows | ||
build | ||
config | ||
controllers | ||
db | ||
files | ||
gateway | ||
migrations | ||
repositories | ||
static | ||
templates | ||
tests | ||
utils | ||
.env.example | ||
.gitignore | ||
docker-compose.yml | ||
Dockerfile | ||
go.mod | ||
go.sum | ||
LICENSE | ||
main.go | ||
Makefile | ||
README.md |
micrach
Go tryout. Single board imageboard.
Motivation
Tired of a fucking SPAs, so I decided to write this simple and lightweight imageboard (microboard, actually) with as less JS as possible.
Also, I wanted to learn Go, so I decided to write this in Go.
Maybe I'll add an api and create a SPA with the Next.js framework in the future, but right now I'm trying to make this as simple as possible.
Prerequisites
- Go 1.13+.
- PostgreSQL.
- Create
.env
file from.env.example
, change env vars to your needs. - Create db with the name that is specified in
.env
file inPOSTGRES_URL
env var.
Run
Just run:
go run main.go
In development I prefer to run it with fresh for live reload.