{"id":20692176,"url":"https://github.com/developerjosh/rust-api","last_synced_at":"2025-09-12T18:09:42.353Z","repository":{"id":239362864,"uuid":"799127945","full_name":"DeveloperJosh/Rust-api","owner":"DeveloperJosh","description":"A restful api in RUST?!?!?!?!?!??!?!?!?","archived":false,"fork":false,"pushed_at":"2024-05-14T03:21:58.000Z","size":75,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-11T01:37:01.242Z","etag":null,"topics":["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/DeveloperJosh.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-05-11T08:57:45.000Z","updated_at":"2024-05-13T21:16:55.000Z","dependencies_parsed_at":"2024-05-13T22:30:42.700Z","dependency_job_id":"00037948-e577-4278-a9e5-fba0ef2e5a3a","html_url":"https://github.com/DeveloperJosh/Rust-api","commit_stats":null,"previous_names":["developerjosh/rust-api"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/DeveloperJosh/Rust-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DeveloperJosh%2FRust-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DeveloperJosh%2FRust-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DeveloperJosh%2FRust-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DeveloperJosh%2FRust-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DeveloperJosh","download_url":"https://codeload.github.com/DeveloperJosh/Rust-api/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DeveloperJosh%2FRust-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274851379,"owners_count":25361570,"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-09-12T02:00:09.324Z","response_time":60,"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":["rust"],"created_at":"2024-11-16T23:19:43.982Z","updated_at":"2025-09-12T18:09:42.330Z","avatar_url":"https://github.com/DeveloperJosh.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Rust REST API\n\nThis is a RESTful API built with Rust, designed to handle posts, likes, and user authentication features including logins and sign-ups. The service uses PostgreSQL for efficient data storage and retrieval, supporting scalability as user interactions increase.\n\n## Features\n\n- **Posts Management**: Create, update, and delete posts.\n- **Likes**: Users can like posts.\n- **User Authentication**: Support for user logins and sign-ups.\n\n## Getting Started\n\nThese instructions will get you a copy of the project up and running on your local machine for development and testing purposes.\n\n### Prerequisites\n\nYou will need PostgreSQL installed on your machine. Follow the instructions for your operating system:\n\n#### Ubuntu\n\n```bash\nsudo apt update\nsudo apt install postgresql postgresql-contrib\n```\n\n#### macOS\n\n```bash\nbrew install postgresql\nbrew services start postgresql\n```\n\n#### Windows\n\nDownload and install PostgreSQL from the [official website](https://www.postgresql.org/download/).\n\n### Rust Installation\n\nEnsure you have Rust installed:\n\n```bash\nrustup update\nrustup install stable\n```\n\n### Database Setup\n\n1. Start PostgreSQL service:\n\n    ```bash\n    sudo service postgresql start  # Ubuntu\n    brew services start postgresql  # macOS\n    ```\n\n2. Create a new PostgreSQL database:\n\n    ```bash\n    sudo -u postgres psql  # Ubuntu\n    psql postgres  # macOS or Windows (if added to PATH)\n    ```\n\n    In the PostgreSQL shell:\n\n    ```sql\n    CREATE DATABASE your_database_name;\n    \\q\n    ```\n\n    Making Tables\n    ```\n    CREATE TABLE users (\n    id SERIAL PRIMARY KEY,\n    username TEXT NOT NULL UNIQUE,\n    email TEXT NOT NULL UNIQUE,\n    password_hash TEXT NOT NULL,\n    created_at TIMESTAMP NOT NULL\n    );\n\n    CREATE TABLE tweets (\n    id SERIAL PRIMARY KEY,\n    content TEXT NOT NULL,\n    likes INTEGER,\n    created_at TIMESTAMP NOT NULL\n    );\n    ```\n\n3. Set up your `.env` file with the PostgreSQL connection string:\n\n    ```env\n    DATABASE_URL=postgres://username:password@localhost/your_database_name\n    JWT_SECRET=your_jwt_secret\n    ```\n\n### Running the Application\n\nClone the repository and navigate to the project directory:\n\n```bash\ngit clone https://github.com/your_username/your_project.git\ncd your_project\n```\n\nRun the application:\n\n```bash\ncargo run\n```\n\nThis will start the server on `http://localhost:8080`.\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeveloperjosh%2Frust-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdeveloperjosh%2Frust-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeveloperjosh%2Frust-api/lists"}