{"id":21654428,"url":"https://github.com/hvalfangst/axum-api","last_synced_at":"2025-05-07T22:45:32.653Z","repository":{"id":190393553,"uuid":"680777905","full_name":"hvalfangst/axum-api","owner":"hvalfangst","description":"REST API written in Rust with Axum providing endpoints secured by JWT","archived":false,"fork":false,"pushed_at":"2023-10-03T09:45:43.000Z","size":85,"stargazers_count":2,"open_issues_count":2,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-07T22:45:25.770Z","etag":null,"topics":["authorization","axum","container-test","diesel","diesel-r2d2","diesel-rs","docker","github-actions","hyper","jsonwebtoken","jwt","jwt-authorization","rust","serde-json","tokio-rs"],"latest_commit_sha":null,"homepage":"","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/hvalfangst.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":"2023-08-20T11:25:09.000Z","updated_at":"2025-04-16T13:25:13.000Z","dependencies_parsed_at":"2023-09-28T22:53:44.100Z","dependency_job_id":"20d1895c-51d1-4fb0-aa78-cf9809d2dcd5","html_url":"https://github.com/hvalfangst/axum-api","commit_stats":null,"previous_names":["hvalfangst/axum-api-with-auth","hvalfangst/axum-api"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hvalfangst%2Faxum-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hvalfangst%2Faxum-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hvalfangst%2Faxum-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hvalfangst%2Faxum-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hvalfangst","download_url":"https://codeload.github.com/hvalfangst/axum-api/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252967974,"owners_count":21833245,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["authorization","axum","container-test","diesel","diesel-r2d2","diesel-rs","docker","github-actions","hyper","jsonwebtoken","jwt","jwt-authorization","rust","serde-json","tokio-rs"],"created_at":"2024-11-25T08:27:50.647Z","updated_at":"2025-05-07T22:45:32.633Z","avatar_url":"https://github.com/hvalfangst.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# REST API written in Rust with Axum\n\n## Overview\n\n\n\n## Requirements\n\n* x86-64\n* Linux/Unix\n* [Rust](https://www.rust-lang.org/tools/install)\n* [Docker](https://www.docker.com/products/docker-desktop/)\n\n## Startup\n\nThe script \"up\" provisions resources and starts our application by executing the following:\n```\n1. docker-compose -f db/dev/docker-compose.yml up -d\n2. docker-compose -f db/test/docker-compose.yml up -d\n3. cargo install diesel_cli --no-default-features --features \"postgres\"\n4. diesel migration run --database-url=\"postgres://Tremakken:yeah???@localhost:3333/dev_db\"\n5. diesel migration run --database-url=\"postgres://Glossy:yellau@localhost:4444/test_db\"\n6. cargo build\n7. cargo test -- --test-threads=1\n8. cargo run\n```\n\n\n## Shutdown\n\nThe script \"down\" deletes our dev and test databases by executing the following:\n```\n1. docker-compose -f db/docker-compose.yml down\n2. docker-compose -f db/test/docker-compose.yml down\n```\n\n## Test script\nThe script \"test\" resets db and executes tests by executing the following:\n```\n1. sh db/test/reset.sh\n2. cargo test -- --test-threads=1\n```\n\n## Postman Collection\n\nThe repository includes a Postman collection in the 'postman' directory.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhvalfangst%2Faxum-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhvalfangst%2Faxum-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhvalfangst%2Faxum-api/lists"}