Giter Site home page Giter Site logo

vijaybandi / ilaro.admin Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sqlauto/ilaro.admin

0.0 1.0 0.0 6.11 MB

Generic admin panel for ASP.NET MVC.

Home Page: http://admin.ilaro.net/

License: MIT License

C# 97.38% Batchfile 0.01% PowerShell 0.58% CSS 0.99% JavaScript 1.03%

ilaro.admin's Introduction

Ilaro.Admin Build status

Ilaro.Admin creates for you admin panel using only POCO classes.

Demo - using Northwind DB (with small modifications, removed multiple primary keys)

Project was inspired by Django admin site.

Please keep in mind this is still an alpha version.

Get it from nuget:

If you are using Unity install:

Install-Package Ilaro.Admin.Unity

Or if you using Ninject install:

Install-Package Ilaro.Admin.Ninject

Or you can just install:

Install-Package Ilaro.Admin

And register by yourself all needed stuff.

##TODO I don't plan milestones, so I will do things in random order. Maybe some of them I'll skip, and I'll probably back to them after release v1.

I moved TODO to wiki pages, because here, it is doing a mess in commits, and I rather would simple list than an issues pages.

##Requirements:

  • POCO classes (or pseudo POCO)
  • ASP MVC 4

##Initialisation:

In global.asax you must do three things:

  1. Register routes

    // prefix is optional, by default = IlaroAdmin
    AdminInitialise.RegisterRoutes(RouteTable.Routes, prefix: "Admin");
    AdminInitialise.RegisterResourceRoutes(RouteTable.Routes);

    It should be put before register default routes because you lose a friendly urls

  2. Add entities

    Entity<Customer>.Add();
    Entity<Product>.Add();

    Add method create a Entity object with all info from attributes. In future I want add fluent configuration of entity so, there will be no need to configure entity with attributes.

  3. Specify access to Ilaro.Admin

    Admin.Authorize = new AuthorizeAttribute(){ Roles = "Admin" };

    If you don't do that everyone with proper link will have access to Ilaro.Admin.

  4. Initialise Ilaro.Admin

    Admin.Initialise("NorthwindEntities");

    This line initialise UnityContainer, and bind foreign entity and tries set primary key for each entity who has not defeined it. If you have only one ConnectionString there is no need to specify it.

  5. Register areas

    AreaRegistration.RegisterAllAreas();

    This step should be added by default during creating asp mvc project. Ilaro.Admin is created as area, so it needs registration.

  6. Go to wiki pages for more info. Entity configuration Property configuration

And after that when you go to ~/IlaroAdmin url (if you don't define other prefix) you should see something like that: ####Dashboard Ilaro.Admin dashboard ####Records list Ilaro.Admin records list ####Create new record Ilaro.Admin create new record

##What I use Here I will try write all libraries, and part of code I use in project.

ilaro.admin's People

Contributors

rgonek avatar

Watchers

sql avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.