Freedit | New UI dev version |
---|---|
forum.pse.dev | forum-blond.vercel.app |
☑️ Requirements: docker, docker-compose.
-
▶️ ./up
to start everything❔
This will:- Start all services (postgres db, vite client, rust server) as docker containers
- Opens automatically the frontend in your browser
-
⏹️
./down
to stop everything❔
This will stop all the services (nothing else than `docker compose down`).
We use mise
to manage runtimes, manage environment variables, and run tasks.
Install it and start everything in dev mode with:
curl https://mise.run | sh
mise activate
mise run d
❔
- Installs
mise
- Installs necessary runtimes (bun, rust)
- Installs necessary packages (node_modules, cargo deps)
- Spins up a postgres database and runs the migrations against it
- Generates prisma client and corresponding TS types
- Starts the api server in dev mode
- Starts the frontend client in dev mode
During local development, we use inbucket to receive confirmation emails.
The mailboxes are available at localhost:9000.
The docker compose setup includes a Grafana, Loki, and Promtail instances to monitor the server logs. The Grafana dashboard is accessible at localhost:3002 during local development.
You will have to add the Loki data source to your grafana instance
-
Go to localhost:3002
-
Default credentials are
admin:admin
-
Explore > open advanced data source picker
-
Configure new data source > search for loki
-
Add connection url
Pay attention to which network you are on, in case loki and grafana runs within the docker network or localhost: http://<loki|localhost>:3100
This project started as a fork of Freedit, but has since diverged quite a bit.
forum.pse.dev still runs this original freedit codebase.
Run it with:
mise r freedit
or
cargo run -r --bin freedit