{"id":23089514,"url":"https://github.com/maulanasdqn/wedding-api","last_synced_at":"2025-08-23T04:12:16.103Z","repository":{"id":265938306,"uuid":"886655729","full_name":"maulanasdqn/wedding-api","owner":"maulanasdqn","description":"Our Wedding API","archived":false,"fork":false,"pushed_at":"2024-12-31T09:10:05.000Z","size":216,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-16T08:41:02.027Z","etag":null,"topics":["axum","best-practices","crate2nix","dcoker","nix","nix-shell","nixflake","rust","sea-orm","sqlx","wedding","wedding-rsvp"],"latest_commit_sha":null,"homepage":"https://api.wedding.fenny.me","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/maulanasdqn.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,"zenodo":null}},"created_at":"2024-11-11T11:18:25.000Z","updated_at":"2024-12-31T09:10:09.000Z","dependencies_parsed_at":"2024-12-08T14:33:22.073Z","dependency_job_id":"46604e57-758e-4526-b7ac-8e5d7dc480a7","html_url":"https://github.com/maulanasdqn/wedding-api","commit_stats":null,"previous_names":["maulanasdqn/rust-book-store-api","maulanasdqn/rust-wedding","maulanasdqn/wedding-api"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/maulanasdqn/wedding-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maulanasdqn%2Fwedding-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maulanasdqn%2Fwedding-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maulanasdqn%2Fwedding-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maulanasdqn%2Fwedding-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maulanasdqn","download_url":"https://codeload.github.com/maulanasdqn/wedding-api/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maulanasdqn%2Fwedding-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271740730,"owners_count":24812642,"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","status":"online","status_checked_at":"2025-08-23T02:00:09.327Z","response_time":69,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["axum","best-practices","crate2nix","dcoker","nix","nix-shell","nixflake","rust","sea-orm","sqlx","wedding","wedding-rsvp"],"created_at":"2024-12-16T20:36:49.855Z","updated_at":"2025-08-23T04:12:16.080Z","avatar_url":"https://github.com/maulanasdqn.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Wedding Reservation API\n\nThis project is a Wedding Reservation API built using Rust.\n\n## Features\n\n- **RESTful API**: Provides endpoints for managing wedding reservations.\n- **Database Integration**: Employs SeaORM for seamless database interactions.\n- **Authentication**: Authentication and Middleware\n- **CORS Handling**: Handling CORS with Tower HTTP CorsLayer\n- **API Docs**: OpenAPI Swager Ready\n- **Object Storage**: Integrated with Minio\n\n## Prerequisites\n\n- **Rust**: Ensure that Rust is installed on your system. You can install it from [rust-lang.org](https://www.rust-lang.org/).\n- **Database**: Set up a SurrealDB database and note the connection details, You can install it from [surrealdb.com](https://surrealdb.com/)\n- **Docker**: if you want build this project using docker, you need docker, You can install it from [docker.com](https://www.docker.com/)\n- **Nix**: if you want build this project using nix, you need nix, You can install it from [nixos.org](https://nixos.org/)\n\n## Getting Started\n\n1. **Clone the Repository**:\n\n   ```bash\n   git clone https://github.com/maulanasdqn/wedding-api.git\n   cd wedding-api\n   ```\n\n2. **Set Up Environment Variables**:\n\n   Copy a `.env.exanple` file:\n\n   ```env\n   cp .env.example .env\n   ```\n\n3. **Install Dependencies**:\n\n   ```bash\n   cargo build --release\n   ```\n    ```bash\n   cargo install sea-orm-cli\n   ```\n\n4. **Run Database Migrations**:\n\n   ```bash\n   sea-orm-cli -d .migration migrate up\n   ```\n\n5. **Start the Server**:\n\n   ```bash\n   cargo run -p api --release\n   ```\n\n   The API will be accessible at `http://localhost:3000/api/docs`.\n\n## Docker\n\n1. **Build the Docker Image**:\n\n   ```bash\n   docker build -t wedding-api .\n   ```\n\n2. **Run the Docker Container**:\n\n   ```bash\n   docker run -p 3000:3000 --env-file .env wedding-api wedding-api:latest\n   ```\n\n   The API will be accessible at `http://localhost:3000/api/docs`.\n\n\n## Using Nix as Builder\n\n1. **Install Nix**:\n\n   ```bash\n   curl -L https://nixos.org/nix/install | sh\n   ```\n\n2. **Switch to Nix Shell or Nix Flake**:\n\n   ```bash\n   nix develop\n   ```\n\n3. **Build the Project**:\n\n   ```bash\n   nix build\n   ```\n\n4. **Run the Server**:\n\n   ```bash\n    nix run\n   ```\n\n## Endpoints\n\n- **API Docs**\n`http://localhost/3000/api/docs` \n- **Get Reservations**\n- `http://localhost:3000/api/reservations`\n- **Create Reservation**\n`http://localhost:3000/api/reservations/create`\n- **Upload Files** `http://localhost:3000/api/upload`\n\n## Contributing\n\nContributions are welcome! Please fork the repository and create a pull request with your changes.\n\n## License\n\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.\n\n## Acknowledgements\n\n- [Axum](https://github.com/tokio-rs/axum)\n- [SeaORM](https://github.com/SeaQL/sea-orm)\n- [SurealDB](https://surrealdb.com)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaulanasdqn%2Fwedding-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaulanasdqn%2Fwedding-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaulanasdqn%2Fwedding-api/lists"}