Best way to start is to install Visual Studio Template (see complete instruction here) which contains 3 templates:
-
Neutronium knockout Application
knockout basic start-up project.
-
Neutronium Vue Application
Vue start-up project.
Shipped with neutronium-vue template that uses webpack to bundle javascript files. Use:npm run dev
to develop application in the browser.
In this mode, the application is using data provided by the\data\vm.cjson
file. Use Neutroniumexport
command to generate such file.npm run integrated
to serve js file in way that can be used in hot-reload mode. See below.npm run build
to create js file that while be loaded and used inNeutronium application.
The provided Neutronium application can be runt in 3 modes:
-dev
development mode with hot-reload enable. You should runnpm run integrated
before running the application in this mode. In this mode, it is possible to edit javascript, CSS and HTML and to see the changes in a running Neutronium application.-test
test mode: Neutronium debug is allowed but files from the build are used. No hot-reload-prod
production mode: no Neutronium debug allowed. Build files are used
Production mode
is the only possible mode when using none-debug build.
Test mode
is the default mode when building in debug mode.
To switch the different modes, use the Visual studio Project Property>Debug
window:
- Neutronium.Vue.SPA
This template contains all of
Neutronium Vue Application
template features. In addition, it contains:- Dependency injection using
CommonServiceLocator
pattern so that it is possible to switch IOC implementation. The template comes with Ninject but Neutronium ReactiveTrader is an example using Autofac. - Routing integrated with vue-router
- Localization via vue-i18n
- Dependency injection using
Complete documentation can be found here
It can be used as a start-up for a new application as well as a starting point to create your own template