Giter Site home page Giter Site logo

io-digital-assignment's Introduction

IO digital assignment

Project structure

I've used a clean architecture here are my layers:

Project Name Layer Responsibilites
IO.TedTalk.Api Presentation layer Validate inputs , wrap output results and exceptions , create output
IO.TedTalk.Core Domain extensions , customized exception types , domain models definition , application wide constants
IO.TedTalk.Data Data layer communicate with data layer such as SQLite db and csv data file and provides an abstraction with reposiotry pattern to access data
IO.TedTalk.Services Service Layer caching , map data between presentation layer and data layer , implement our logics

Notes

things that I've used in my assignment task :

  • .Net core 6 uing C#
  • Ef Core 6 using SQLite db
  • Api Versioning
  • Api documentation with swagger
  • Docker
  • Some Unit Tests
  • Caching with memory cache
  • AutoMapper

How to run

there are two options for run this project

Option 1 - using visual studio

you can easily open solution file in src/IO.TedTalk.sln and then run IO.TedTalk.Api project

you can find api documentation here https://localhost:7212/swagger/

Screenshot

Option 2 - using Docker

make sure you have installed docker then navigate to project root folder use this command to build an image from this project

docker build . -t io_assignment

then make a container with image you have build in previous step:

docker run io_assignment -p 7012:80 --name io_assignment

If I had more time..

  • use mediator pattern to impelemt a simple CQRS pattern
  • write more unit tests to test our business logic and util methods
  • resolve all todos in my code
  • refactor my codes and do some cleanups

io-digital-assignment's People

Contributors

1saeedsalehi avatar

Watchers

 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.