{"id":22373775,"url":"https://github.com/codecshekhar/reddit-app-demo","last_synced_at":"2026-04-27T12:02:54.771Z","repository":{"id":266422855,"uuid":"898306049","full_name":"CodeCshekhar/reddit-app-demo","owner":"CodeCshekhar","description":"This repository contains Reddit-App concepts to illustrate its advantages in understanding different functionallity on Console ","archived":false,"fork":false,"pushed_at":"2025-02-15T04:40:42.000Z","size":460,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-26T17:27:35.029Z","etag":null,"topics":["clone-coding","gradle","gradle-java","groovy-script","java","reddit","reddit-api"],"latest_commit_sha":null,"homepage":"","language":"Java","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/CodeCshekhar.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-12-04T06:51:05.000Z","updated_at":"2025-02-15T04:40:46.000Z","dependencies_parsed_at":"2025-02-15T05:32:02.338Z","dependency_job_id":null,"html_url":"https://github.com/CodeCshekhar/reddit-app-demo","commit_stats":null,"previous_names":["codecshekhar/reddit-app","codecshekhar/reddit-app-demo"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/CodeCshekhar/reddit-app-demo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeCshekhar%2Freddit-app-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeCshekhar%2Freddit-app-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeCshekhar%2Freddit-app-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeCshekhar%2Freddit-app-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CodeCshekhar","download_url":"https://codeload.github.com/CodeCshekhar/reddit-app-demo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeCshekhar%2Freddit-app-demo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32335297,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-26T23:26:28.701Z","status":"online","status_checked_at":"2026-04-27T02:00:06.769Z","response_time":128,"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":["clone-coding","gradle","gradle-java","groovy-script","java","reddit","reddit-api"],"created_at":"2024-12-04T21:14:13.526Z","updated_at":"2026-04-27T12:02:54.754Z","avatar_url":"https://github.com/CodeCshekhar.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Reddit Clone App\n\n## Overview\nThis is a Reddit-like application built using App development with Gradle as the build system. The app provides key features inspired by the Reddit platform, allowing users to browse, interact with, and share content.\n\n## Features\n- User authentication and registration\n- Subreddit browsing\n- Post creation and viewing\n- Commenting system\n- Upvote/Downvote functionality\n- User profiles\n- Personalized feed\n\n## Prerequisites\n- IntelliJ IDEA (recommended)\n- Java Development Kit (JDK) 11 or later\n- Postman (for API testing)\n\n## Tech Stack\n- Language: Java\n- IDE: IntelliJ IDEA\n- Build Tool: Gradle\n- Architecture: MVVM (Model-View-ViewModel)\n- Database: Room Persistence Library\n- Networking: Retrofit\n- Dependency Injection: Dagger Hilt\n- Image Loading: Glide\n\n## Getting Started\n\n### 1. Clone the Repository\n```bash\ngit clone https://github.com/CodeCshekhar/Reddit-App.git\ncd Reddit-App\n```\n\n### 2. Open in IntelliJ IDEA\n- Launch IntelliJ IDEA\n- Select \"Open\" and navigate to the project directory\n- Allow Gradle to sync and download dependencies\n\n### 3. Features\n- Authenticate with the Reddit API.\n- Fetch top posts from any subreddit.\n- Submit posts to a subreddit.\n- Save responses to a local file for reference.\n\n### 4. Usage\n1. Run the app:\n   ```bash\n   java -jar RedditApp.jar\n\n\n## IntelliJ IDEA Configuration\n\n### Recommended Plugins\n- Gradle\n- Firebase\n- Lombok\n- Material Theme UI\n\n### Gradle Configuration\nEnsure your `build.gradle` files are configured correctly:\n\n#### Project-level `build.gradle`- Sample\n```groovy\nbuildscript {\n    dependencies {\n        classpath 'com.google.gms:google-services:4.3.15'\n        classpath 'com.android.tools.build:gradle:7.4.2'\n    }\n}\n```\n\n#### App-level `build.gradle` - Sample\n```groovy\nplugins {\n    id 'com.android.application'\n    id 'dagger.hilt.android.plugin'\n    id 'com.google.gms.google-services'\n}\n\ndependencies {\n    // Android core dependencies\n    implementation 'androidx.appcompat:appcompat:1.4.1'\n    implementation 'com.google.android.material:material:1.5.0'\n    \n    // Firebase\n    implementation 'com.google.firebase:firebase-auth:21.0.3'\n    implementation 'com.google.firebase:firebase-firestore:24.0.1'\n    \n    // Networking\n    implementation 'com.squareup.retrofit2:retrofit:2.9.0'\n    \n    // Dependency Injection\n    implementation 'com.google.dagger:hilt-android:2.40.5'\n    annotationProcessor 'com.google.dagger:hilt-android-compiler:2.40.5'\n}\n```\n\n## API Testing with Postman\n\n### Postman Setup\n1. Download and install Postman from [postman.com](https://www.postman.com/downloads/)\n2. Import the API collection for this project\n\n### API Endpoints\nWe've created a comprehensive Postman collection to test the following endpoints:\n\n#### Authentication\n- `POST /auth/register` - User registration\n- `POST /auth/login` - User login\n- `POST /auth/logout` - User logout\n\n#### Subreddits\n- `GET /subreddits` - List all subreddits\n- `GET /subreddits/{id}` - Get specific subreddit details\n- `POST /subreddits` - Create a new subreddit\n\n#### Posts\n- `GET /posts` - Retrieve posts\n-\n- ![Sample Fetched Post](https://github.com/user-attachments/assets/ffca6c7c-0af7-4410-9740-47920b0a85a1)\n- \n- `GET /posts/{id}` - Get specific post details\n- `POST /posts` - Create a new post\n- `PUT /posts/{id}` - Update a post\n- `DELETE /posts/{id}` - Delete a post\n- \"Below is Sampled Fetched Post!!!!\"\n\n\n## Testing\n- Unit Tests: Located in `src/test/java`\n- Instrumentation Tests: Located in `src/androidTest/java`\n- API Tests: Managed through Postman collection\n\nRun tests in IntelliJ IDEA:\n- Right-click on test directories\n- Select \"Run Tests\"\n\n## Debugging\nIntelliJ IDEA provides powerful debugging tools:\n- Set breakpoints\n- Use step-through debugging\n- Examine variables and call stack\n- Use the integrated debugger for Android apps\n\n## Contributing\n1. Fork the repository\n2. Create your feature branch (`git checkout -b feature/AmazingFeature`)\n3. Commit your changes (`git commit -m 'Add some AmazingFeature'`)\n4. Push to the branch (`git push origin feature/AmazingFeature`)\n5. Open a Pull Request\n\n## License\nDistributed under the MIT License. See `LICENSE` for more information.\n\nProject Link: [https://github.com/CodeCshekhar/Reddit-App](https://github.com/CodeCshekhar/Reddit-App)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodecshekhar%2Freddit-app-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodecshekhar%2Freddit-app-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodecshekhar%2Freddit-app-demo/lists"}