Mantis .NET
Search
⌃K

Getting Started

Setup Mantis.Net
Mantis supports ASP.net Core 7. The following is a guide to quickly start using the template.

Prerequisites

Visual Studio

Make sure to have Visual Studio downloaded on your machine. Currently, Mantis supports ASP.net Core 7 or newer.

Build Theme

Go to the root directory of the project and open MantisDotNet.sln solution file in Visual studio.

Gulp for Mantis

Use Gulp in Mantis is for building different layouts and theme customization with lots of functional tasks like Image Optimization, SaSS compilation, etc...which really useful to make the production-ready wwwroot/directory. When you run gulp, it copies assets to wwwroot folder.

How to set up Gulp for Mantis?

  1. 1.
    Make sure that you have already installed Nodejs and Gulp on your server/computer
  2. 2.
    Open the "Command prompt" and redirect to your project root directory.
  3. 3.
    Enter the command npm install or yarn in the command prompt.
  4. 4.
    After that, you need to run the below gulp tasks to build a production-ready dist/ directory.

Gulp Commands(task)

Default task

Gulp Command
Description
gulp
which build assets in wwwroot/ directory

Basic task

Gulp Command
Description
gulp sass
which compile .scss files from /src/assets/scss directory and place it into a /dist/assets/css directory
gulp imgmin
which use to optimize images from /src/assets/images directory and place it into a /dist/assets/images directory
gulp build
which use to copy files from /src/assets directory and place it into a /dist/assets directory
gulp build-html
which uses compiling your HTML file from /src/html directory and place it into a /dist directory
gulp build-js
which use to build .js files from /src/assets/js directory and place it into a /dist/assets/js directory

now Compile and run the project using visual studio