Git Product home page Git Product logo

reactivities's Introduction

Reactivities

Based on of Neils Cummings's course on Udemy Complete Guide to Building an App with .NET Core and React, and post from Jason Taylor Clean Architecture with .NET Core

Features

Prerequisites

Technologies

ASP .NET CORE 5

  • Entity Framework Core
  • MediatR
  • Automapper
  • FluentValidation
  • ASP .NET Core Identity
  • Cloudinary API
  • SignalR

React 17

  • MobX
  • Axios
  • React Router
  • UUID
  • Semantic UI React
  • React Calendar
  • React Toastify
  • Formik + Yup
  • React Datepicker
  • Date-Fns
  • React Dropzone
  • React Cropper
  • Microsoft SignalR
  • React Infinite Scroller

Getting Started

Database Configuration

The solution is configured to use Sqlite by default. Feel free to change to another database service as SQL Server or In-Memory Database if you want.

Database Migration

To use dotnet-ef for your migrations add the following flags to your command (values assume you are executing from the root folder)

  • --project Infrastructure/
  • --startup-project API/
  • --output-dir Persistence/Migrations

For example, to add a new migration from the root folder:

dotnet ef migrations add "MyMigration" --project Infrastructure/ --startup-project API/ --output-dir Persistence/Migrations

Then, you need update de database from the startup project (API)

dotnet ef database update

Important! It needs to remove all migrations when changing a database service.

Overview

Domain

This contains all business entities to the domain layer.

Application

This layer contains the application logic. It's dependent on the domain layer but has no dependencies on any other layer or project. This layer defines interfaces that are implemented by outside layers. For example, if the application needs to access a notification service, a new interface would be added to the application and implementation would be created within the infrastructure.

Infrastructure

This layer contains classes for accessing external resources such as persistence and identity services. These classes should be based (in most of the cases) on interfaces defined within the application layer. You can add other external resources as web services, SMTP, file system, etc. It's dependant on the application layer and has no other dependencies on any other layer or project.

API

This layer is a Web API based on ASP.NET Core 5. This layer depends on both the Application and Infrastructure layers, however, the dependency on Infrastructure is only to support dependency injection. Therefore only Startup.cs should reference Infrastructure.

Clien-App

This is a client app based on React with typescript, it represent the front-end of this application.

Enjoy!

reactivities's People

Contributors

dalvarado86 avatar

Watchers

 avatar

Forkers

anjali388

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.