📐Quick Start
Setup Berry .Net
Berry 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, Berry supports ASP.net Core 7 or newer.
Build Theme
Navigate to your root folder (i.e. berry-dotnet)
c:>cd berry-dotnetInstall packages by npm or yarn according to your preferences. Here we are using the npm package manager.
> npm iAfter package installation, you can start your app by using Gulp command. This will regenerate the wwwroot/assets folder. You can keep this command running while making changes in the src folder. It will auto-apply to the wwwroot folder and your browser.
> gulpGo to the root directory of the project and open BerryDotNet.sln solution file in Visual studio.
Gulp Commands(task)
Default task
gulp
which build assets in wwwroot/ directory
Basic task
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
Last updated