{"id":26139826,"url":"https://github.com/ozturkvedat/dbredditclone","last_synced_at":"2026-05-17T06:43:24.484Z","repository":{"id":265867002,"uuid":"896374785","full_name":"OzturkVedat/DBRedditClone","owner":"OzturkVedat","description":"A simple Reddit back-end clone. Uses raw SQL for db management and a REST API.","archived":false,"fork":false,"pushed_at":"2024-12-03T07:00:38.000Z","size":185,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-13T01:46:19.997Z","etag":null,"topics":["asp-net-core","backend","postgresql","swagger"],"latest_commit_sha":null,"homepage":"","language":"C#","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/OzturkVedat.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,"zenodo":null}},"created_at":"2024-11-30T07:28:52.000Z","updated_at":"2025-05-21T05:45:07.000Z","dependencies_parsed_at":null,"dependency_job_id":"6f0deff1-f6fb-448c-bd87-c399db219f1c","html_url":"https://github.com/OzturkVedat/DBRedditClone","commit_stats":null,"previous_names":["ozturkvedat/dbredditclone"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/OzturkVedat/DBRedditClone","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OzturkVedat%2FDBRedditClone","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OzturkVedat%2FDBRedditClone/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OzturkVedat%2FDBRedditClone/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OzturkVedat%2FDBRedditClone/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/OzturkVedat","download_url":"https://codeload.github.com/OzturkVedat/DBRedditClone/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OzturkVedat%2FDBRedditClone/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279008423,"owners_count":26084460,"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-10-11T02:00:06.511Z","response_time":55,"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":["asp-net-core","backend","postgresql","swagger"],"created_at":"2025-03-11T02:37:19.193Z","updated_at":"2025-10-11T19:37:39.861Z","avatar_url":"https://github.com/OzturkVedat.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Reddit Clone Database\n\nA basic Reddit clone back-end showcasing CRUD operations, raw SQL integration, and database triggers, with ASP.NET Core and PostgreSQL. The project includes Swagger UI for API testing and documentation.\n\n---\n\n## Features\n\n- **CRUD Functionality**: Perform create, read, update, and delete operations on core entities like Posts, Comments, and Subreddits.\n- **Raw SQL Scripts**: Use of raw SQL for precise database control.\n- **Triggers**: PostgreSQL triggers for automated database tasks.\n- **Swagger UI Integration**: Test and view the API endpoints interactively.\n- **PostgreSQL Database**: Robust and open source relational database backend.\n\n---\n\n## Project Structure\n\n- **Controllers**: Manage API endpoints.\n- **Models**: Represent database entities, DTOs, etc.\n- **SqlScripts**: PostgreSQL scripts that seeded into database upon application start.\n- **Services**: Directory containing abstraction layers (services) between the API controllers and the database.\n\n---\n\n![SwaggerUI](./assets/swagger.png)\n\n# Pre-requisites\n- [PostgreSQL](https://www.postgresql.org/download/)\n- pgAdmin (optional, but useful for database management)\n- .NET SDK (8.0 or later)\n\n## Installation\n\n1. **Clone the Repository**\n   \n   ```bash\n   git clone https://github.com/OzturkVedat/DBRedditClone.git\n   cd DBRedditClone\n   ```\n3. **Set up a Database**\n   \n    Create a new database for project. Modify the project's connection string within appsettings.json for local development.\n   \n5. **Run the application**\n   \n   Install dependencies and run the app with CLI (or just run it from Visual Studio):\n   ```bash\n   dotnet restore\n   dotnet run\n   ```\n   \n7. Access Swagger UI\n   \n   Navigate to https://localhost:7245/swagger/index.html to test the API endpoint.\n   \n---\nHere is the Crow's Foot style diagram of the current database set up:\n\n![CrowsFoot](./assets/crows-foot.png)   \n   \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fozturkvedat%2Fdbredditclone","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fozturkvedat%2Fdbredditclone","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fozturkvedat%2Fdbredditclone/lists"}