{"id":15457075,"url":"https://github.com/raminmammadzada/file-upload-dotnet-api","last_synced_at":"2025-03-28T10:20:40.449Z","repository":{"id":73429401,"uuid":"396384796","full_name":"RaminMammadzada/file-upload-dotnet-api","owner":"RaminMammadzada","description":"This is a home task for the company FlyingDonkey. This repo is for the server-side web API which is created with .NET Core.","archived":false,"fork":false,"pushed_at":"2021-08-22T17:41:13.000Z","size":30,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"develop","last_synced_at":"2025-02-02T10:43:37.198Z","etag":null,"topics":["dotnet-core","entity-framework"],"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/RaminMammadzada.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":"2021-08-15T14:50:41.000Z","updated_at":"2022-11-17T12:24:43.000Z","dependencies_parsed_at":"2023-03-24T11:50:29.403Z","dependency_job_id":null,"html_url":"https://github.com/RaminMammadzada/file-upload-dotnet-api","commit_stats":{"total_commits":14,"total_committers":1,"mean_commits":14.0,"dds":0.0,"last_synced_commit":"e459a2797968fc11699c486350a5bc1fbe8be3bf"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RaminMammadzada%2Ffile-upload-dotnet-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RaminMammadzada%2Ffile-upload-dotnet-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RaminMammadzada%2Ffile-upload-dotnet-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RaminMammadzada%2Ffile-upload-dotnet-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RaminMammadzada","download_url":"https://codeload.github.com/RaminMammadzada/file-upload-dotnet-api/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246009091,"owners_count":20708908,"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":["dotnet-core","entity-framework"],"created_at":"2024-10-01T22:41:52.915Z","updated_at":"2025-03-28T10:20:40.427Z","avatar_url":"https://github.com/RaminMammadzada.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n### Simple File Uploader with .Net Core \n\nThis is a backend application of the home task for the company Flying Donkey. \n\nThe tasks that are needed to be done:\n\n- [x] File size and file types that can be uploaded to the server must be configurable. Validation for invalid data should present.\n\n- [ ] Add at least two unit tests for the back-end. Tests must have positive and negative scenarios. Default tests added by angular cli will be ignored during the task evaluation.\n\n- [x] API must have layered architecture, code must follow common style guides and development principles.\n\n- [x] File size and file types that can be uploaded to the server must be configurable. Validation for invalid data should present.\n\n- [x] Feel free to choose any storage for uploaded files (it can be DB/File System/etc.) The only requirement here - storage must be persistent during runtime\n\n- [ ] File download/preview is not required but would be good if implemented.\n\n\n### Setup\n\n- Clone the repo by typing\n- Open the project in Visual Studio, possibly 2019 version. (On MacOS VIsual Studio Code will be also fine if you add several C# and .Net extensions for VSCode). \n- Make sure you have `SQL Server 2019` installed and started in your local machine.\n- Run `Update-Database` in Package Manager Console. (On MacOS, you must install `dotnet` and `dotnet ef` then you can type `dotnet ef database update` in the terminal). This will create SQLite database , namely `FlyingDonkeyTaskRamin`, and will locate it in you project folder. \n- Run the app by using Start Debugging button in Visual Studio. (On MacOS, you will type `dotnet watch run`)\n- Open `https://localhost:5001/api/fileItems` in your browser to be sure that the API is working right.\n- The frontend application which will make use of the data that this API provides, can be downloaded from [this repository](https://github.com/RaminMammadzada/file-upload-angular-client)\n\n## Built with the following tech stack\n\n- [.Net Core](https://dotnet.microsoft.com/download)\n- [SQLite](sqlite.org/index.html)\n\n## Author\n\n👤 **Ramin Mammadzada**\n\n- Github: [@raminmammadzada](https://github.com/raminmammadzada)\n- Twitter: [@raminmammadzada](https://twitter.com/raminmammadzada)\n- Linkedin: [Ramin Mammadzada](https://www.linkedin.com/in/raminmammadzada/)\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Framinmammadzada%2Ffile-upload-dotnet-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Framinmammadzada%2Ffile-upload-dotnet-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Framinmammadzada%2Ffile-upload-dotnet-api/lists"}