Installation

ASP.net Core

installation video tutorial here 1) Download the MinSetupCoreDemo. 2) Copy from it and put in the same folders in your solution the following:
libs folder: Omu.AwesomeMvc.dll/xml, Omu.Awem.dll/xml
wwwroot/js: AwesomeMvc.js, awem.js, utils.js
wwwroot/css: themes folder
3) Add reference to
Omu.AwesomeMvc.dll
and
Omu.Awem.dll
. 4) Add this to
Views\_ViewImports.cshtml
:
@using Omu.AwesomeMvc
@using Omu.Awem.Helpers
5) Open
_Layout.cshtml
and copy the references to the js and css files ( keep the same order ). In the
header
add
AwesomeMvc.css
and
jquery.js
(jquery needs to be in the header for document.ready), and before the
</body>
add
AwesomeMvc.js
,
awem.js
,
utils.js
and call
@Html.Awe().Init()
. At this point you should be able to write
@Html.Awe().Button().Text("hi").OnClick("awem.notif('hi')")
in your
Index.cshtml
and it will work. 6) In
Startup.cs -> ConfigureSerices
add/merge this (this is for the metadata attributes):
var provider = new AweMetaProvider();
services.AddMvc(o =>
{
    o.ModelMetadataDetailsProviders.Add(provider);
});

Optional (utils used in our grid crud demos): 7) Copy the
Utils
and
Helpers
folder, and
ViewModel/Input/DeleteConfirmInput.cs
, edit the namespaces in the copied
.cs
files to match your project. 8) Copy/merge the content of
Views\_ViewImports.cshtml
, you need to modify some lines to match the namespaces of your project (e.g.
MyProject.Helpers
instead of
MinSetupCore.Helpers
). 9) Copy
Shared/Delete.cshtml
,
Shared/_FieldLayout.cshtml
, and
Shared/EditorTemplates
folder. Css for grid crud icons used in our demos is located in
site.css
(find comment
grid btns
), and also copy
wwwroot/css/editdel.png
.

ASP.net MVC 5/4/3

1) Download the MinSetupDemo, 2) Copy from it and put in the same folders in your solution the following:
libs folder: Omu.AwesomeMvc.dll/xml, Omu.Awem.dll/xml
Scripts folder: AwesomeMvc.js, awem.js, utils.js
Content/themes folder: copy the whole folder
3) Reference
Omu.AwesomeMvc.dll
and
Omu.Awem.dll
in your web project. 4) In
Views\web.config
and in
<system.web.webPages.razor> -> <pages> -> <namespaces>
add:
<add namespace="Omu.AwesomeMvc" />
<add namespace="Omu.Awem.Helpers" />
If you're using aspx, ascx views you would add the same in the main web.config in
<system.web> -> <pages> -> <namespaces>
5) Open
_Layout.cshtml
and copy the references to the js and css files ( keep the same order ), and the call to
@Html.Awe().Init()
. At this point you should be able to write
@Html.Awe().Button().Text("hi").OnClick("awem.notif('awesome')")
in your
Index.cshtml
and it will work. Optional (utils used in our grid crud demos): 6) Copy the
Utils
and
Helpers
folder, and
ViewModel/Input/DeleteConfirmInput.cs
, include them in your project, edit the namespaces in the copied cs files to match your project. 7) add the new namespaces to the
Views\web.config
<add namespace="YourAppNamespace.Utils" />
<add namespace="YourAppNamespace.Helpers.Awesome" />
8) You can also copy the
Views/Shared/EditorTemplates
folder and
Views/Shared/Delete.cshtml
, if you're following/copying from our demos it is likely that you're going to need them. Css for grid crud icons used in our demos is located in
site.css
(find comment
grid btns
), and also copy
Content/editdel.png
.

Additional notes

In the trial download there are binaries (dll files) for mvc3, mvc4, mvc5 and ASP.net Core.



Comments