Contributing
- Install Rust, Moon and Caddy (>= 2.7).
- Make sure you have PostgreSQL installed and running. I prefer using Docker e.g.
docker run -e POSTGRES_PASSWORD=postgres -e POSTGRES_USER=postgres -e POSTGRES_DB=postgres -p 5432:5432 postgres:16-alpine
- Run
moon r transactional:build
. This is a one-time operation. - Create the following environment file in the root of the repository:
.env
DATABASE_URL=postgres://postgres:postgres@localhost:5432/postgres
APP_COMMIT_SHA=45937eded96319941d381eef9074922702b05f73
DEFAULT_TMDB_ACCESS_TOKEN=your-tmdb-access-token
DEFAULT_MAL_CLIENT_ID=your-mal-client-id
TRAKT_CLIENT_ID=your-trakt-client-id
UNKEY_API_ID=dummy-api-id
APP_VERSION=v5.2.1
- Run the following commands in separate terminals:
cargo run
moon run frontend:dev
caddy run --config 'ci/Caddyfile'
- The frontend will be available at
http://localhost:8000
.
In development, both servers are started independently running on :3000
and :5000
respectively and reverse proxied at :8000
.
If you want to work on exporting, then you need to also have Minio
installed and running on localhost:9000
.