2022-01-27 21:08:14 +03:00
|
|
|
# micrach
|
2021-08-26 13:30:40 +03:00
|
|
|
Go tryout. Single board imageboard.
|
2021-09-08 15:31:26 +03:00
|
|
|
|
2022-01-27 21:08:35 +03:00
|
|
|
## Motivation
|
2022-01-27 21:07:39 +03:00
|
|
|
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.
|
|
|
|
|
2021-09-08 15:31:26 +03:00
|
|
|
## Prerequisites
|
2021-11-20 23:42:16 +03:00
|
|
|
1. Go 1.13+.
|
|
|
|
2. PostgreSQL.
|
|
|
|
3. Create `.env` file from `.env.example`, change env vars to your needs.
|
|
|
|
4. Create db with the name that is specified in `.env` file in `POSTGRES_URL` env var.
|
2022-02-06 20:40:21 +03:00
|
|
|
|
|
|
|
## Run
|
|
|
|
Just run:
|
|
|
|
```sh
|
|
|
|
go run main.go
|
|
|
|
```
|
|
|
|
|
2022-05-25 13:24:31 +03:00
|
|
|
**In development** I prefer to run it with [nodemon](https://github.com/remy/nodemon) for live reload.
|