19 lines
No EOL
756 B
Markdown
19 lines
No EOL
756 B
Markdown
# Discourse the right way
|
|
**Fog** is a **F**orum mixed with a Bl**og**, intended to encourage fruitful
|
|
discussion and the spread of knowledge.
|
|
|
|
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.
|
|
|
|
Frontend has a seperate setup. See [`web/README.md`](web/README.md) for more
|
|
info. |