The Ultimate .NET Core MVC Template without heavy lib codes!
Explore the docs »
View Demo
·
Report Bug
·
Request Feature
Table of Contents
A lightweight template for building .NET Core MVC applications with a full JavaScript ecosystem available.
Incentives:
- Wanted to have a more lightweight, versatile .NET Core MVC template
- Don't want to use the original MVC template
- Want to use TailwindCSS
- Buitl this MVC template so I can use it for other projects.
Of course, no one template will serve all projects since your needs may be different. So I'll be adding more in the near future. You may also suggest changes by forking this repo and creating a pull request or opening an issue. Thanks to all the people who have contributed to expanding this template!
The technologies and tools used within this template.
- .NET MVC
- C#/Razor
- Esbuild
- JavaScript
- TypeScript
- TailwindCSS
- Selenium (Need regularly update Chrome driver NuGet)
- xUnit
.NET MVC is a server-side web application framework. The official MVC template from Microsoft comes with a huge JavaScript and BootStrap library which I think it is cumbersome to maintain. I swapped the library with Node and npm build tools, in this case, esbuild to perform code splitting and bundling. It also supports transpilation from TypeScript to JavaScript and this makes the codebase more versatile and lightweight. Additionally, I can use TailwindCSS to style the web UIs which is extremely handy.
The list of tools that are used when development.
To use this template for personal use or contribution, simply perform the following. A total of 2 terminals are required to get the core components of the application up and running for development.
- Clone the repo
git clone https://github.com/data-miner00/DelvisSoligt.git
- Install Node dependencies
pnpm i
- Install NuGet dependencies
dotnet restore
- Change directory into
DelvisSoligt.Web
cd src/DelvisSoligt.Web
- Optionally build TailwindCSS
pnpm build:css
- Optionally build JavaScript from TypeScript
pnpm build:js
- Watch TailwindCSS
pnpm watch:css
- Start or watch MVC project
dotnet run # or dotnet watch
- Build MVC project
dotnet build
- TypeScript integration
- Unit Test
- Mobile responsive
- Working navigation
- Selenium UI test
- Fix Div soup
- Add fonts
- Authorization
- jQuery
See the open issues for a full list of proposed features (and known issues).
Contributions are what makes the open-source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Distributed under the GPL3.0 License. See LICENSE
for more information.
List of resources that are helpful and would like to give credit to.