{"id":42088473,"url":"https://github.com/delta/aor-backend","last_synced_at":"2026-01-26T10:34:47.105Z","repository":{"id":215424712,"uuid":"420971850","full_name":"delta/aor-backend","owner":"delta","description":null,"archived":false,"fork":false,"pushed_at":"2025-02-14T08:10:47.000Z","size":788,"stargazers_count":4,"open_issues_count":6,"forks_count":13,"subscribers_count":27,"default_branch":"aor25","last_synced_at":"2025-02-14T09:24:08.615Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/delta.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-10-25T10:08:31.000Z","updated_at":"2025-01-24T08:24:33.000Z","dependencies_parsed_at":"2024-01-15T20:38:54.054Z","dependency_job_id":"c4bfdac6-bbfc-4cde-b18c-e5f7f3d25ac4","html_url":"https://github.com/delta/aor-backend","commit_stats":null,"previous_names":["delta/aot-backend","delta/aor-backend"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/delta/aor-backend","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/delta%2Faor-backend","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/delta%2Faor-backend/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/delta%2Faor-backend/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/delta%2Faor-backend/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/delta","download_url":"https://codeload.github.com/delta/aor-backend/tar.gz/refs/heads/aor25","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/delta%2Faor-backend/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28774713,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-26T09:42:00.929Z","status":"ssl_error","status_checked_at":"2026-01-26T09:42:00.591Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-01-26T10:34:46.332Z","updated_at":"2026-01-26T10:34:47.087Z","avatar_url":"https://github.com/delta.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# aot-backend\n\n## Setup\n\n1. Install [Rust](https://www.rust-lang.org/tools/install)\n2. Install [rustfmt](https://github.com/rust-lang/rustfmt) and [clippy](https://github.com/rust-lang/rust-clippy):\n\n    ```bash\n    rustup component add rustfmt clippy\n    ```\n\n3. Clone and change directory into this repo\n4. Install pre-commit hooks\n    - Install Python and pip\n    - Install pre-commit package:\n\n    ```bash\n    pip install pre-commit\n    pre-commit install\n    ```\n\n5. Run:\n\n    ```bash\n    cp .env.example .env\n    ```\n\n    and fill the env variables\n\n\u003c!-- markdownlint-disable MD029 --\u003e\n\n### With Docker\n\n6. Install [Docker](https://docs.docker.com/engine/install/) and [Docker Compose](https://docs.docker.com/compose/install/)\n7. Start the services:\n\n    ```bash\n    docker-compose up\n    ```\n\n8. To generate migrations or run any command on the rust container, prefix it with `docker-compose exec server` like so:\n\n    ```bash\n    docker-compose exec server diesel migration generate \u003cmigration-name\u003e\n    ```\n\n### Bare metal\n\n6. Install [PostgreSQL](https://www.postgresql.org/download/)\n7. Install diesel_cli:\n\n    ```bash\n    cargo install diesel_cli --no-default-features --features postgres\n    ```\n\n8. Install [cargo-watch](https://github.com/watchexec/cargo-watch) for hot reload (optional):\n\n    ```bash\n    cargo install cargo-watch\n    ```\n\n9. To run migrations,\n\n    ```bash\n    diesel migration run\n    ```\n\n10. Run:\n\n    ```bash\n    cargo watch -i logs -x run\n    ```\n\n    to start the server with hot reload, otherwise\n\n    ```bash\n    cargo run\n    ```\n\nSeed the dummy data using:\n\n```bash\npsql -U aot --set ON_ERROR_STOP=on \u003c dummy_data.sql\n```\n\nFor docker, prefix the above command with ```docker-compose exec -T db```\n\n## Deployment\n\n1. Run:\n\n    ```bash\n    cp .env.example .env\n    ```\n\n    and fill the env variables\n\n\n2. Start the services:\n\n    ```bash\n    ./prod-run.sh up\n    ```\n\n\tand build the images again with\n\t```bash\n\t./prod-run.sh up build\n\t```\n\n3. Down the services:\n\n\t```bash\n\t./prod-run.sh down\n\t```\n\n4. Logs for the services:\n\n\t```bash\n\t./prod-run.sh logs\n\t```\n\nYou can attach to containers with:\n\n```bash\ndocker attach \u003ccontainer-name\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdelta%2Faor-backend","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdelta%2Faor-backend","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdelta%2Faor-backend/lists"}