tahq69 / web-app-template

C# web api / UI template project with Stylecop, DI, EF code first, unit tests and VueJs in a frontend

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CRIP samples

This project is just a sample of 'perfect' web api application by my opinion.

Project consist of:

  • Castle.Windsor: dependency injection;
  • Microsoft test framework: unit tests;
  • Entity Framework: database ORM;
  • VueJs: javascript front-end library;

VS Extensions required:

How to use:

  • Add this project as new remote for your repisitory;
  • Update .\scripts\settings.ps1 file Target section with your project details;
  • Run powershell .\scripts\rename.ps1 to update project name and namespaces;
  • Fix namespace order error ocurrances in code;
  • Run for development:
    • Start .Web application on IIS / IISExpress;
    • Configure .Web application vue.config.js devServer.proxy property to target API server url;
    • In NPM Task Runner start serve task (it will show URL to open in browser with hot reload support);
  • Production build:
    • In NPM Task Runner start build task;
    • Publish .Web application to target IIS;

TODO list

About

C# web api / UI template project with Stylecop, DI, EF code first, unit tests and VueJs in a frontend


Languages

Language:C# 94.1%Language:Vue 2.7%Language:PowerShell 2.1%Language:TypeScript 0.7%Language:HTML 0.3%Language:JavaScript 0.1%