{"id":25055041,"url":"https://github.com/mario-so/crudrs_template","last_synced_at":"2025-03-31T07:44:47.940Z","repository":{"id":245687370,"uuid":"818955674","full_name":"Mario-SO/crudrs_template","owner":"Mario-SO","description":"Containerized Rust + PostgreSQL API","archived":false,"fork":false,"pushed_at":"2024-06-23T11:59:15.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-06T12:19:44.729Z","etag":null,"topics":[],"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/Mario-SO.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":"2024-06-23T11:04:51.000Z","updated_at":"2024-06-23T12:01:21.000Z","dependencies_parsed_at":"2024-06-28T03:15:14.120Z","dependency_job_id":null,"html_url":"https://github.com/Mario-SO/crudrs_template","commit_stats":null,"previous_names":["mario-so/crudrs_template"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mario-SO%2Fcrudrs_template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mario-SO%2Fcrudrs_template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mario-SO%2Fcrudrs_template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mario-SO%2Fcrudrs_template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Mario-SO","download_url":"https://codeload.github.com/Mario-SO/crudrs_template/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246436090,"owners_count":20776964,"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":[],"created_at":"2025-02-06T12:19:45.912Z","updated_at":"2025-03-31T07:44:47.916Z","avatar_url":"https://github.com/Mario-SO.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🚀 crudrs_template: A Simple CRUD API with PostgreSQL made in Rust 🦀\n\n## 📋 Table of Contents\n-  [Features](#-features)\n-  [Getting Started](#-getting-started)\n-  [Running the Application](#-running-the-application)\n-  [API Endpoints](#-api-endpoints)\n-  [Contributing](#-contributing)\n-  [License](#-license)\n\n## ✨ Features\n-  📦 Containerized with Docker\n-  🗄️ Uses PostgreSQL for data storage\n-  🔄 Basic CRUD operations\n-  🦀 Built with Rust for speed and safety\n\n## 🏁 Getting Started\n\n### Prerequisites\nMake sure you have the following installed:\n-  🐋 [Docker](https://www.docker.com/)\n-  🧳 [Docker Compose](https://docs.docker.com/compose/)\n-  💻 [Rust](https://www.rust-lang.org/)\n\n### Installation\nClone the repository:\n```bash\ngit clone https://github.com/Mario-SO/crudrs_template.git\ncd crudrs_template\n```\n\n## ▶️ Running the Application\n\n### Using Docker Compose\nSimply run the following command to start the application:\n```bash\ndocker-compose up --build\n```\n\nThis will build and start two containers:\n-  🦀 `rustapp`: Your Rust application.\n-  🗃️ `db`: A PostgreSQL database.\n\n### Accessing the API\nOnce the containers are up, your API will be accessible at:\n```\nhttp://localhost:8080\n```\n\n## 🛠️ API Endpoints\n\n### Create a User\n```http\nPOST /users\n```\n**Request Body:**\n```json\n{\n  \"name\": \"John Doe\",\n  \"email\": \"johndoe@example.com\"\n}\n```\n\n### Get All Users\n```http\nGET /users\n```\n\n### Get a User by ID\n```http\nGET /users/{id}\n```\n\n### Update a User\n```http\nPUT /users/{id}\n```\n**Request Body:**\n```json\n{\n  \"name\": \"John Doe\",\n  \"email\": \"johndoe@example.com\"\n}\n```\n\n### Delete a User\n```http\nDELETE /users/{id}\n```\n\n---\n\nHappy coding! 🎉✨","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmario-so%2Fcrudrs_template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmario-so%2Fcrudrs_template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmario-so%2Fcrudrs_template/lists"}