Contributing
- Install Rust, Moon and Caddy.
- Make sure you have PostgreSQL installed and running. I prefer using Docker.
- 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
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
.