Simple AngularJS interface using WebAPI, MVC and Identity to financial control
- [Visual Studio] - Microsoft Visual Studio!
- [.NET Framework 4.5] - Microsoft .NET Framework 4.5
- [SQLExpress] - Microsoft SQL Express
Openning
- Open solution file [ControleFinanceiro.sln] in your Visual Studio
- Set the project [0-Presentation/Budget.Presentation.MVC] as StartUp Project
Database - Executing Entity Framework CodeFirst
- Open Package Manager Console on Visual Studio
- Select default project [4-Infrastructure\Budget.Infrastructure.Data]
- Execute the command:
update-database -verbose -StartUpProjectName Budget.Services.WebAPI
- Select default project [4-Infrastructure\4.1-CrossCutting\Budget.Infrastructure.CrossCutting.Identity]
- Execute the command:
update-database -verbose -StartUpProjectName Budget.Services.WebAPI
Running
- Press play button (This action should restore the Nuget Packages)
After execute the Run Steps
- Open your browser - [localhost:1099/Home] (MVC-Razor Interface) OR [localhost:1099/Angular] (AngularJS Interface)
- Create your simple account localy
- Input youy account at login
- Navigate beteween menu and enjoy :)
Every data are using 'SQLExpress' localy making this project simpler.
This project is using SOLID concepts
- User Input: AngularJS and MVC Application
- Project Tiers: Class Library
- Authentication: OAuth / Owin Identity
- Concerns DDD and TDD (Mocks e Stubs)
- MVC 5
- AngularJS
- AutoMapper
- Entity Framework - CodeFirst / Migrations - Dapper
Tiers:
Domain
- Model & Services: Domain is a global tier used by all tiers providing the main entities and services
Application
- this layer orchestrate the services invokes between API and Service
Infrastructure
- Data: This tier consumes the WebAPI. It has your own model to manipulate the JSON and response to Services
- IoC: This tier just Inject all dependencies (DI) - using package SimpleInjector
- Refactor code
- Full translate to English
Free by Andre Raiça Silva