Skip to content

privacy-scaling-explorations/pse-forums

 
 

Repository files navigation

PSE Forum

Just run the whole thing locally

☑️ Requirements: docker, docker-compose.

  • ▶️ ./up to start everything

    This will:
    1. Start all services (postgres db, vite client, rust server) as docker containers
    2. Opens automatically the frontend in your browser
  • ⏹️ ./down to stop everything

    This will stop all the services (nothing else than `docker compose down`).

Develop

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
  1. Installs mise
  2. Installs necessary runtimes (bun, rust)
  3. Installs necessary packages (node_modules, cargo deps)
  4. Spins up a postgres database and runs the migrations against it
  5. Generates prisma client and corresponding TS types
  6. Starts the api server in dev mode
  7. Starts the frontend client in dev mode

Inbucket

During local development, we use inbucket to receive confirmation emails.
The mailboxes are available at localhost:9000.

Freedit

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

Packages

 
 
 

Languages

  • Rust 54.4%
  • HTML 24.3%
  • TypeScript 18.7%
  • JavaScript 0.8%
  • PLpgSQL 0.6%
  • CSS 0.6%
  • Other 0.6%