fog/README.md

19 lines
756 B
Markdown
Raw Permalink Normal View History

2024-12-30 06:29:34 +00:00
# Discourse the right way
**Fog** is a **F**orum mixed with a Bl**og**, intended to encourage fruitful
2024-12-30 10:02:01 +00:00
discussion and the spread of knowledge.
2024-12-30 06:29:34 +00:00
2024-12-30 10:02:01 +00:00
To get started:
1. Install [Go](https://go.dev).
2. Install [migrate](https://github.com/golang-migrate/migrate):
```sh
$ go install -tags 'postgres' github.com/golang-migrate/migrate/v4/cmd/migrate@latest
```
3. Install [PostgreSQL](https://postgresql.org).
4. Create a new Postgres user and database.
5. Set your environment variables. See [`docs/envvars.mds`](docs/envvars.md)
for an list of variables that need to be set.
6. Run `scripts/migrateup` to setup the database tables.
7. Run `go run cmd/api` to start the backend.
2024-12-30 06:29:34 +00:00
2024-12-30 10:02:01 +00:00
Frontend has a seperate setup. See [`web/README.md`](web/README.md) for more
info.