Coder Social home page Coder Social logo

raminmammadzada / file-upload-dotnet-api Goto Github PK

View Code? Open in Web Editor NEW
1.0 3.0 0.0 30 KB

This is a home task for the company FlyingDonkey. This repo is for the server-side web API which is created with .NET Core.

C# 100.00%
dotnet-core entity-framework

file-upload-dotnet-api's Introduction

Simple File Uploader with .Net Core

This is a backend application of the home task for the company Flying Donkey.

The tasks that are needed to be done:

  • File size and file types that can be uploaded to the server must be configurable. Validation for invalid data should present.

  • 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.

  • API must have layered architecture, code must follow common style guides and development principles.

  • File size and file types that can be uploaded to the server must be configurable. Validation for invalid data should present.

  • 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

  • File download/preview is not required but would be good if implemented.

Setup

  • Clone the repo by typing
  • 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).
  • Make sure you have SQL Server 2019 installed and started in your local machine.
  • 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.
  • Run the app by using Start Debugging button in Visual Studio. (On MacOS, you will type dotnet watch run)
  • Open https://localhost:5001/api/fileItems in your browser to be sure that the API is working right.
  • The frontend application which will make use of the data that this API provides, can be downloaded from this repository

Built with the following tech stack

Author

๐Ÿ‘ค Ramin Mammadzada

file-upload-dotnet-api's People

Contributors

raminmammadzada avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.