Hostname: https://divine-thunder-7423.fly.dev
Run using docker compose. Before running docker-compose you must set the following values, or copy the env.development.sample file and update it with the right value:
export WANIKANI_API_TOKEN="<my-api-token>"
export BUNPRO_API_TOKEN="<my-api-token>"
export SATORI_COOKIE="<session-cookie>"
export ANKIWEB_COOKIE="<session-cookie>"
# OR:
cp .env.development.sample .env.development # add the right tokens in
docker compose up --build
All commands are run from the backend directory.
cargo test
All commands are run from the frontend directory.
npm run test:unit
Deploying to fly.io uses the top level Dockerfile. Deploying is done with:
fly deploy # Note: you need to have access to the project in fly.io to deploy
The deploy image can be build and run with:
docker build -t deploy-test .
docker run --env-file .env.development -p 3000:3000 -it deploy-test