{"id":22871460,"url":"https://github.com/tienphuckx/anony-box-backbone","last_synced_at":"2025-05-05T22:33:22.356Z","repository":{"id":258939954,"uuid":"867399026","full_name":"tienphuckx/anony-box-backbone","owner":"tienphuckx","description":"An anonymous chatting web","archived":false,"fork":false,"pushed_at":"2024-12-09T02:12:09.000Z","size":699,"stargazers_count":3,"open_issues_count":5,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-01T16:33:16.837Z","etag":null,"topics":["api-rest","axum","postg","rust","socket-programming"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tienphuckx.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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-10-04T01:51:39.000Z","updated_at":"2024-12-09T02:12:13.000Z","dependencies_parsed_at":"2024-10-25T23:42:11.221Z","dependency_job_id":"cce57156-e1bd-4df8-a9fb-8dad95e7962d","html_url":"https://github.com/tienphuckx/anony-box-backbone","commit_stats":null,"previous_names":["tienphuckx/anony-box-backbone"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tienphuckx%2Fanony-box-backbone","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tienphuckx%2Fanony-box-backbone/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tienphuckx%2Fanony-box-backbone/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tienphuckx%2Fanony-box-backbone/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tienphuckx","download_url":"https://codeload.github.com/tienphuckx/anony-box-backbone/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252586387,"owners_count":21772288,"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":["api-rest","axum","postg","rust","socket-programming"],"created_at":"2024-12-13T13:19:22.189Z","updated_at":"2025-05-05T22:33:22.339Z","avatar_url":"https://github.com/tienphuckx.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Backbone API for Anonymous ChatBox\nBackend API for an anonymous chat application.\n\n## Steps to Apply Database Modifications\n\n### 1. Generate a New Migration with `diesel_cli`\nTo create a new migration file, use the following command:\n\n```bash\ndiesel migration generate migration_name\n```\n\nThis will create two SQL script files in the `migrations` folder:\n- **up.sql** - Defines the logic for applying the new changes.\n- **down.sql** - Defines the logic for reverting the changes.\n\n\u003e **Note**: Follow the naming convention `yyyy-mm-dd-description-of-change` for migration names.  \n\u003e **Example**: `2024-10-26-create-table-xyz`\n\n### 2. Define the Migration Logic\nEdit the `up.sql` and `down.sql` files to specify the SQL commands required for your changes.\n\n### 3. Apply the Migration to the Database\nRun the migration to apply changes to the database:\n\n```bash\ndiesel migration run\n```\n\n### 4. Update the Database Schema in Code\nTo reflect the new database schema in your code, use:\n\n```bash\ndiesel print-schema \u003e ./src/database/schema.rs\n```\n\nThis command will update the `schema.rs` file with the latest table definitions.\n\n### 5. Adjust Models for Database Changes\nModify any necessary models in `./src/database/models.rs` to align with the updated schema.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftienphuckx%2Fanony-box-backbone","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftienphuckx%2Fanony-box-backbone","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftienphuckx%2Fanony-box-backbone/lists"}