Hostma – ASP.NET MVC5 & CORE7 Modern Web Hosting Template

Dashboard
Welcome to Hostma – ASP.NET MVC5 & CORE7 Modern Web Hosting Template
  • Created Date : 03/April/2023
  • Author : Spruko
  • Company : Spruko Technologies Private Limited

Thank you for showing interest towards our admin template. Feel free to contact us any time. We have a dedicated team to provide you the best support. If you want any queries open support ticket https://support.spruko.com/.

Introduction
Welcome to Hostma – ASP.NET MVC5 & CORE7 Modern Web Hosting Template

Hostma - ASP.NET MVC5 & CORE7 Modern Web Hosting Template, With these template formats, it's very easy to create a presence and grab someone's attention around the web page Because the template is built using CSHTML, CSS3, Bootstrap 5 framework and with Sass. So please before you start working with the template take a quick look on the documentation so that you can easily built your website.

If You Love Our Template Design Please don't forgot to rate it. Thank you so much! 😊

Template Description

Hostma is a Modern Web Hosting Template using modern and minimal design. It is fully flexible user-friendly and responsive. Hostma Modern template is powered with CSHTML, SASS, & Bootstrap 5 which looks great on Desktops, Tablets, and Mobile Devices. This Template Includes 40+ CSHTML Pages . No Need to do hard work for this template customization. We already designed it and you can easily design your website just how you like it. This template using Bootstrap 5 framework. After Purchased this template you will get All CSHTML Files, CSS, SCSS and JS Files.

It has super clean flat user interface admin Backend design, easy customizable components and widgets.The Template comes with a awesome unique design also we ensure you can easily design template.

It is a fully responsive layout for all type of devices. Works on all major web browsers, Desktop, iPhone, iPad, Tablet and all other smart phone devices

Once you Purchase Hostma is a Modern Web Hosting Template, you will be able to get free download of all future updates.

Theme Features :

Light Theme

Dark Theme

LTR Version

RTL Version

Fullwidth & Boxed

Template Features
Dark Theme Ready RTL Version Boxed Layout
40+ CSHTML Pages Easy to Customize Bootstrap 5 Responsive Framework
24 * 7 Professional Company Support Error Page Under Construction Page
Color Theme Support (Primary and Background) Neat, clean and simple design W3C Validated
Minimum Requirements

  • Visual Studio Code or Visual Studio 2022
  • C# for Visual Studio Code (latest version)
  • .NET SDK (latest version)
Installation Process of .NET SDK

Step1: Please visite the Official Web Site of the .NET SDK

Step2: Click on the Download .NET SDK button

Step3: Now your .NET SDK file has downloaded and installed in your computer.

Installation Process Of ASP.NET MVC5 & CORE7

Here we are using the "ASP.NET MVC5 & CORE7 " download

If you know how to create ASP.NET MVC5 & CORE7 project you can skip this step.

  • Assuming that you have already installed .NET SDK on your computer.
  • First, you need to create an environment at your project location For example:C:\project\projectname>

  •      Use for ASP.NET MVC5
  • This project folder path can be used to open the command. Now execute the command dotnet new mvc -o Projectname It creates a new ASP.NET MVC5
         project in the Project Name folder.

  •      Use for ASP.NET CORE7
  • This project folder path can be used to open the command. Now execute the command dotnet new webapp -o projectname It creates a new ASP.NET CORE7
         project in the Project Name folder.

  • Trust the HTTPS development certificate by running the following command dotnet dev-certs https --trust .
  • Now you are sucessfully installed ASP.NET MVC5 & CORE7 project.

Visual Studio Code
  • If you are using Visual Studio Code.
  • Go to your root project location path, then open the project file in your editor.
  • Open the command prompt, then use " cd /path-to-your-project ".
  • Enter the command dotnet watch run to get ASP.NET MVC5 & CORE7 development server.
Visual Studio
  • If you are using Visual Studio.
  • Open the Visual studio, then click on "Open a Project or Solution."
  • Go to your root project location path, then you will see inside the folder projectname.csproj. Select it, and then open the project file.
  • Now, press the key F5 to get ASP.NET MVC5 & CORE7 development server.
The Basic Structure Of ASP.NET MVC5 PROJECT

										├── bin																		
										├── Controllers
										├── Models
										├── obj
										├── Properties
										├── Views
										├── wwwroot
										├── appsettings.Development.json
										├── appsettings.json
										├── gulpfile.js
										├── hostma.csproj
										├── hostma.csproj.user
										├── hostma.sln
										├── package-lock.json
										├── package.json
										└── Program.cs
 
  • First, unzip the project folder that you received from us.
  • Navigate as shown Example: C:\projectname\Views in that project folder in will have 39 folders and in 40+ cshtml files.
  • Navigate as shown Example: C:\projectname\ Controllers in that project folder will have 40+ Controller.cs pages.
  • Navigate as shown Example: C:\projectname\Views\Shared\Layouts Open folder there you will find _accept-cookie.cshtml, _custom-scripts.cshtml, _custom-scripts2.cshtml, _custom-styles.chshtml, _footer.cshtml, _header.cshtml, _scripts.cshtml, _sidebar.cshtml, _styles.cshtml, _switcher-icon.cshtml, _switcher-scripts.cshtml, _switcher-styles.cshtml and _switcher.cshtml files.
  • Here _Layout.cshtml file is the base file for all the cshtml pages.
  • Here _LayoutAuth.cshtml file is the base file for custom pages ex: forgotpassword.cshtml, login.cshtml, register.cshtml.
  • Here _LayoutAuth2.cshtml file is the base file for custom pages ex: login2.cshtml, register2.cshtml
  • Here _LayoutAuth3.cshtml file is the base file for undermaintenance.cshtml page.
  • And _LayoutSwitcher.cshtml file is the base file for Switcher.cshtml page.
The Basic Structure Of ASP.NET CORE7 PROJECT

										├── bin																		
										├── obj
										├── Pages
										├── Properties
										├── wwwroot
										├── appsettings.Development.json
										├── appsettings.json
										├── gulpfile.js
										├── hostma.csproj
										├── hostma.csproj.user
										├── hostma.sln
										├── package-lock.json
										├── package.json
										└── Program.cs
									 
									 
								
  • First, unzip the project folder that you received from us.
  • Navigate as shown Example: C:\projectname\Pages in that project folder in will have 40+ folders and in 40+ cshtml files and 40+ cshtml.cs files.
  • Navigate as shown Example: C:\projectname\Pages\Shared\Layouts Open folder there you will find _accept-cookie.cshtml, _custom-scripts.cshtml, _custom-scripts2.cshtml, _custom-styles.chshtml, _footer.cshtml, _header.cshtml, _scripts.cshtml, _sidebar.cshtml, _styles.cshtml, _switcher-icon.cshtml, _switcher-scripts.cshtml, _switcher-styles.cshtml and _switcher.cshtml files.
  • Here _Layout.cshtml file is the base file for all the cshtml pages.
  • Here _LayoutAuth.cshtml file is the base file for custom pages ex: forgotpassword.cshtml, login.cshtml, register.cshtml.
  • Here _LayoutAuth2.cshtml file is the base file for custom pages ex: login2.cshtml, register2.cshtml
  • Here _LayoutAuth3.cshtml file is the base file for undermaintenance.cshtml page.
  • And _LayoutSwitcher.cshtml file is the base file for Switcher.cshtml page.
How to run ASP.Net MVC5 & CORE7 in Localhost Development Server

Visual studio code
  • First, unzip the project folder that you received from us.
  • Go to your root project location path, then open the project file in your editor.
  • Open the command prompt, then use " cd /path-to-your-project ".
  • Now execute the command: dotnet watch run to getASP.Net MVC5 & CORE7 development server.
Visual studio
  • First, unzip the project folder that you received from us.
  • Go to your root project location path, then open the project file.
  • Just double click on the file hostma.sln inside the project folder.
  • Now, press the keyF5 to getASP.Net MVC5 & CORE7 development server.
SCSS & CSS

Django comes with power of SCSS. The css files can be generated from scss by simply following below steps:

  • Gulp

    Gulp is a JavaScipt streaming task runner. It automate many development tasks. Using gulp you can perform tasks like running a local server, minifying code, compilation, Browser sync, optimizing images, etc... We are using gulp which allows to easily compilation of scss to css. You can read it more about it here.

Prerequisites

Please follow below steps to install and setup all prerequisites:

  • Nodejs

    Make sure to have the Node.js installed & running in your computer. If you have already installed nodejs on your computer, you can skip this step, otherwise install nodejs on your computer,

  • Gulp

    Make sure to have the Gulp installed & running in your computer. If you have already installed gulp on your computer, you can skip this step. In order to install, just run command npm install -g gulp from your terminal.

  • Gulp Variables

    After Completion of gulp Install. open gulpfile.js And install the "Declaration of gulp variables" in your command promt. In order to install, just run command
    npm install gulp,
    npm install gulp-sass,
    npm install gulp-postcss,
    npm install autoprefixer,
    npm install gulp-sourcemaps,
    npm install browser-sync,
    npm install gulp-cssbeautify
    npm install gulp-beautify from your terminal.

    Make sure to have all above prerequisites installed & running in your computer. If you want to install more variables for your template, just declare the variables in gulpfile.js after that run in command promt

Installation

To setup, follow below mentioned steps:

  • Install Prerequisites

    Make sure to have all above prerequisites installed & running in your computer

  • Install Dependencies

    Open your terminal, go to your folder and enter the command npm install. This would install all required dependencies in node_modules folder.

After you finished with above steps, you can run the command to compile scss files into css: gulp

SCSS & CSS

Here we provided package.json and gulpfile.js files in your project, you just need to run npm install in your terminal in your project root path.

After compilation of download, you can compile your SCSS files into CSS files by following below procedure.

Command Description
gulp watch In Noa template gulp watch command is used for, whatever the changes made in scss files, will watch and compiled into css files.
Software Versions Used:
  • .Net fremework : 4.8
  • C# for Visual Studio Code : 1.76
  • .NET : 7.0.202
ASP .NET MVC5 Over All Folder Structure

├── bin
├── Controllers	
|   └── 39 Controller.cs (files)	
├── Modals	
├── obj	
├── Properties
├── Views/
|   ├── Shared/
|   |   ├── Layouts	
|   |   |   ├── _accept-cookie.cshtml
|   |   |   ├── _custom-scripts.cshtml
|   |   |   ├── _custom-scripts2.cshtml
|   |   |   ├── _custom-styles.cshtml
|   |   |   ├── _footer.cshtml
|   |   |   ├── _header.cshtml
|   |   |   ├── _scripts.cshtml
|   |   |   ├── _sidebar.cshtml
|   |   |   ├── _styles.cshtml
|   |   |   ├── _switcher.cshtml
|   |   |   ├── _switcher-icon.cshtml
|   |   |   ├── _switcher-scripts.cshtml
|   |   |   └── _switcher-styles.cshtml
|   |   ├── _Layout.cshtml
|   |   ├── _Layout.cshtml.css
|   |   ├── _LayoutAuth.cshtml
|   |   ├── _LayoutAuth2.cshtml
|   |   ├── _LayoutAuth3.cshtml
|   |   ├── _LayoutSwitcher.cshtml
|   |   ├── _ValidationScriptsPartial.cshtml
|   |   └── Error.cshtml
|   ├── 39 Folders
|   |   └── 46 .cshtml (Files)
|   ├── _ViewImports.cshtml
|   └── _ViewStart.cshtml
├── wwwroot/
|   ├── assets/
|   |   ├── css/
|   |   ├── icon-fonts/
|   |   ├── images/
|   |   ├── js/
|   |   ├── libs/
|   |   └── scss/
|   ├── css
|   ├── js
|   ├── lib
|   └── favicon.ion
├── appsettings.Development.json
├── appsettings.json
├── gulpfile.js
├── hostma.csproj
├── hostma.csproj.user
├── hostma.sln
├── package-lock.json
├── package.json
└── program.cs
ASP .NET CORE7 Over All Folder Structure

├── bin
├── obj		
├── Pages
|   ├── Shared/
|   |   ├── Layouts	
|   |   |   ├── _accept-cookie.cshtml
|   |   |   ├── _custom-scripts.cshtml
|   |   |   ├── _custom-scripts2.cshtml
|   |   |   ├── _custom-styles.cshtml
|   |   |   ├── _footer.cshtml
|   |   |   ├── _header.cshtml
|   |   |   ├── _scripts.cshtml
|   |   |   ├── _sidebar.cshtml
|   |   |   ├── _styles.cshtml
|   |   |   ├── _switcher.cshtml
|   |   |   ├── _switcher-icon.cshtml
|   |   |   ├── _switcher-scripts.cshtml
|   |   |   └── _switcher-styles.cshtml
|   |   ├── _Layout.cshtml
|   |   ├── _Layout.cshtml.css
|   |   ├── _LayoutAuth.cshtml
|   |   ├── _LayoutAuth2.cshtml
|   |   ├── _LayoutAuth3.cshtml
|   |   ├── _LayoutSwitcher.cshtml
|   |   └── _ValidationScriptsPartial.cshtml
|   ├── 46 Folders
|   |   ├── 46 .cshtml (Files)
|   |   └── 46 .cshtml.cs (Files)
|   ├── _ViewImports.cshtml
|   ├── _ViewStart.cshtml
|   ├── Error.cshtml
|   ├── Error.cshtml.cs
|   ├── Index.cshtml
|   ├── Index.cshtml.cs
|   ├── Privacy.cshtml
|   └── Privacy.cshtml.cs
├── Properties
├── wwwroot
|   ├── assets
|   |   ├── css
|   |   ├── icon-fonts
|   |   ├── images
|   |   ├── js/
|   |   ├── libs/
|   |   └── scss/
|   ├── css
|   ├── js
|   ├── lib
|   └── favicon
├── appsettings.Development.json
├── appsettings.json
├── gulpfile.js
├── hostma.csproj
├── hostma.csproj.user
├── hostma.sln
├── package.json
├── package-lock.json
└── program.cs
Switcher?
ASP.NET MVC5 Switcher?

If you want to add switcher to your template follow the below process.


ASP.NET CORE7 Switcher?

If you want to add switcher to your template follow the below process.

FAQ'S

1) How to Change Font Style ?

Step 1:

Go To _fonts.scss (wwwroot/assets/scss/style.scss )

if you want to change another font-family Go to the site Google Fonts And Select One font Family and import In to style.css file

How to Select font Family

Example:

Step 2:

And paste Your Selected font-family in _style.scss

Example:

Step 3:

And add the Your Selected font-family in _customs.scss(wwwroot/assets/scss/custom/_customs.scss)

Example:

	body {
		font-size: 1rem;
		font-family: "Hind Siliguri", sans-serif;
		font-weight: 400;
		color: #{$color};
		background-color: #{$background};
		line-height: 1.5;
		text-align: start;
		overflow-x: clip;
		padding: 0;
		margin: 0;
	}

				

Note : After Changing font you must run gulp command i.e, gulp watch . Refer gulp page for more gulp commands click here.

2) How to Change Logo ?

Go To "wwwroot/assets/images/brand" folder and replace your logo with Previous Logos within in image size. note: Please don't increase logo sizes. Replace your logo within given image size. otherwise the logo will not fit in particular place it disturbs the template design.

3) How to change Menu Icons ?

Use for ASP.NET MVC5
By default menu icons are feather icons if you want to change icons please follow below steps
Step 1 :

To change Menu icons, Go to Root Path: Views/Shared/Layouts/ and open _sidebar.cshtml, in that section you will find feather icons of menu in i tag, there you can replace previous icon with your icon. Example as shown in below

   
	

Use for ASP.NET CORE7
By default menu icons are feather icons if you want to change icons please follow below steps
Step 1 :

To change Menu icons, Go to Root Path: Pages/Shared/Layouts/ and open _sidebar.cshtml, in that section you will find feather icons of menu in i tag, there you can replace previous icon with your icon. Example as shown in below

   
	

4) How to Enable RTL Version?

Please follow the below steps to enable RTL Version
Step 1 :

To enable RTL Version you have to open custom-switcher.js (wwwroot/assets/js/custom-switcher.js) file and remove comments for rtl as shown in below



	//RTL

		if (!localStorage.getItem("hostmartl")) {
		// html.setAttribute("dir" , "rtl") // for rtl version 
		}

				
Step 2 :
Remove the comments to enable rtl as shown below


	//RTL

		if (!localStorage.getItem("hostmartl")) {
			html.setAttribute("dir" , "rtl") // for rtl version 
		}

				

5) How to Enable Dark Theme?

Please follow the below steps to enable Dark Theme
Step 1 :

To enable Dark Theme you have to open custom-switcher.js (wwwroot/assets/js/custom-switcher.js) file and remove comments for dark-mode as shown in below



	//Dark Theme Style

		if (!localStorage.getItem("hostmadarktheme")) {
		// html.setAttribute("data-theme-mode" , "dark") // for dark theme 
		}

				
Step 2 :
Remove the comments to enable dark-mode as shown below


	//Dark Theme Style

		if (!localStorage.getItem("hostmadarktheme")) {
			html.setAttribute("data-theme-mode" , "dark") // for dark theme 
		}

				

6) How to Enable Boxed?

Please follow the below steps to enable Boxed
Step 1 :

To enable Boxed you have to open custom-switcher.js (wwwroot/assets/js/custom-switcher.js) file and remove comments for layout-boxed as shown in below


	//Boxed Style

		if (!localStorage.getItem("hostmaboxed")) {
		// html.setAttribute("data-width" , "boxed") // for boxed style
		}
				
Step 2 :
Remove the comments to enable boxed as shown below

	//Boxed Style

		if (!localStorage.getItem("hostmaboxed")) {
			html.setAttribute("data-width" , "boxed") // for boxed style
		}
				
Local Storage

How to clear LocalStorage (cookie)?

Step1:

Open custom-switcher.js file wwwroot/assets/js/custom-switcher.js

To clear LocalStorage loading functions you need to remove localStorageBackup() function in custom-switcher.js as shown below



				function localStorageBackup() {

				}

				
Step2:

To remove complete LocalStorage saving you need to remove all localstorage related calling functions in custom-switcher.js wwwroot/assets/js/custom-switcher.js files.

LocalStorage related functions like localStorage.setItem, localStorage.removeItem, localStorage.getItem, localStorage.clear. Below are the some examples to find out.


				localStorage.setItem("hostmadarktheme", true);
				localStorage.removeItem("hostmalighttheme");
				localStorage.getItem('hostmaboxed')
				localStorage.clear();
				localStorageBackup();
				
Theme Styles
Primary Color

How to Change Primary Color?

Please follow the below steps to change Primary Color
Step 1 :

To change Primary Color you have to open _variables.scss file and replace what color you want as shown in below

Rootpath : _variables.scss (wwwroot/assets/scss/_variables.scss )

Note : After Changing font you must run gulp command i.e, gulp watch . Refer gulp page for more gulp commands click here.

Dark Theme Style

If you want to change Dark Theme color you need to follow the below process.

How to Change Dark body Color?

Please follow the below steps to change Dark body Color
Step 1 :

To change Dark body Color you have to open _variables.scss file and replace what color you want as shown in below

Rootpath : _variables.scss (wwwroot/assets/scss/_variables.scss )

Note : After Changing font you must run gulp command i.e, gulp watch . Refer gulp page for more gulp commands click here.

Sources
Plugins Versions URL
Bootstrap v5.2.2 https://www.npmjs.com/package/bootstrap
Choices js v7.0.0 https://www.npmjs.com/package/choices.js
Swiper js v8.4.4 https://www.npmjs.com/package/swiper
Icons References
Font Awesome https://fontawesome.com/v4.7.0/icons/
Feather Icons https://feathericons.com/
Tabler Icons https://tabler-icons.io/
Bootstrap Icons https://icons.getbootstrap.com/
Images References
Vecteezy https://www.vecteezy.com/
Iconscount https://iconscout.com/
Unsplash https://unsplash.com/
Bootstrap Icons https://icons.getbootstrap.com/
Font Used

Google fonts are used in the template. They are as follows: Google Fonts

THANK YOU!