{"id":15797761,"url":"https://github.com/juliencrn/twitter-clone","last_synced_at":"2026-04-21T03:31:43.572Z","repository":{"id":103766552,"uuid":"450081717","full_name":"juliencrn/twitter-clone","owner":"juliencrn","description":"[Abandonned] A very simple version of the twitter api to learn how to create a REST API using Rust and the actix framework","archived":false,"fork":false,"pushed_at":"2022-03-10T02:31:48.000Z","size":155,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-10-12T00:41:18.262Z","etag":null,"topics":["actix-web","diesel","postgresql","rest-api","rust"],"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/juliencrn.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":"2022-01-20T12:07:36.000Z","updated_at":"2023-03-08T22:20:14.000Z","dependencies_parsed_at":"2023-10-22T01:15:16.739Z","dependency_job_id":null,"html_url":"https://github.com/juliencrn/twitter-clone","commit_stats":{"total_commits":6,"total_committers":1,"mean_commits":6.0,"dds":0.0,"last_synced_commit":"9b222dbf3cd9553ad5970f0426626d5a2fcdef59"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/juliencrn/twitter-clone","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juliencrn%2Ftwitter-clone","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juliencrn%2Ftwitter-clone/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juliencrn%2Ftwitter-clone/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juliencrn%2Ftwitter-clone/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/juliencrn","download_url":"https://codeload.github.com/juliencrn/twitter-clone/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juliencrn%2Ftwitter-clone/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32075223,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-21T02:38:07.213Z","status":"ssl_error","status_checked_at":"2026-04-21T02:38:06.559Z","response_time":128,"last_error":"SSL_read: 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":["actix-web","diesel","postgresql","rest-api","rust"],"created_at":"2024-10-05T00:20:28.507Z","updated_at":"2026-04-21T03:31:43.557Z","avatar_url":"https://github.com/juliencrn.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Twitter Clone\n\nA Rest API as an \"Hello world\" with Rust, Actix-web and PostgreSQL following this [tutorial](https://hub.qovery.com/guides/tutorial/create-a-blazingly-fast-api-in-rust-part-1/).\n\n## API Design\n\n```bash\n/tweets\n    GET: list last 50 tweets\n    POST: create a new tweet\n/tweets/:id\n    GET: find a tweet by its ID\n    DELETE: delete a tweet by its ID\n/tweets/:id/likes\n    GET: list all likes attached to a tweet\n    POST: add +1 like to a tweet\n    DELETE: add -1 like to a tweet\n```\n\n## Install\n\nThis project requires:\n\n- Rustc - cargo installed\n- PostgreSQL running server\n- diesel_cli\n\n### 1. Setup the PostgreSQL database (on macOS)\n\n```bash\n# Install Postgres\nbrew install postgres\n\n# start Postgres database\nbrew services start postgresql\n# and $ brew services stop postgresql # to stop\n\n# Create main user and set role\npsql postgres\n# Then type this in the interactive term\n\u003e CREATE ROLE username WITH LOGIN PASSWORD 'password';\n\u003e ALTER ROLE username CREATEDB;\n\n# Then type \\q + Enter to quit.\n# Install pgAdmin 4\n\n# Create migration (if doesn't exists)\n# diesel migration generate create_tweets\n# diesel migration generate create_likes\n\n# Exec migration\ndiesel migration run\ndiesel migration redo\n```\n\n```bash\n# Setup database\ndiesel setup\n\n# Launch dev server\ncargo run\n\n# Tests\ncargo test\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjuliencrn%2Ftwitter-clone","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjuliencrn%2Ftwitter-clone","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjuliencrn%2Ftwitter-clone/lists"}