Giter Club home page Giter Club logo

angular2-dashboard-starter's Introduction

angular2-dashboard-starter

Ready to use dashboard starter/seed project based on Angular 2 and AdminLTE bootstrap theme.

MIT license dependencies up to date Stack Share

##Features

  • Angular 2 version 2.0.0-beta.8 using Typescript
  • Live reload & compile
  • Login module with input validations (Utilizes src/login.json)
  • Signup module with input validations
  • Auth module to protect dashboard pages
  • Environmental Configuration settings
  • Dashboard Layout as a separate directive
  • Best open source admin dashboard & control panel bootstrap theme 'AdminLTE 2' by Abdullah Almsaeed.

Installation

  1. Checkout this repo in a folder make sure to give root permissions.
  2. Run npm install once to install app dependencies.
  3. Run npm start in a separate terminal window to start the server and launch the app.

Protect Routes

import { ComponentInstruction, CanActivate } from 'angular2/router';
import { checkAuth } from '../auth/check_auth';

// just include this code above your component class
@CanActivate((next: ComponentInstruction, previous: ComponentInstruction) => {
  return checkAuth(next, previous);
})

Easy to use Dashboard Layout in your templates

Use DashboardLayout directive in your component's template to use dashboard layout. This makes easy to comply views with or without layout like login, signup and error pages etc.

<dashboard-layout pageTitle="Home" pageSubtitle="Your personalized dashboard and control panel">
    <div class="home">
      <!--- Your template code -->
    </div>
</dashboard-layout>

Configuration

Environmental files are located in src/app/config/ folder in json format. You can create your own environments and set the one to use in env.json file. Config files are loaded after the route hits and before everything is initiated therefore, available throughout in application as a service.

import {Config} from '../../config/config';

@Injectable()
export class Foo {

    constructor(private _http: Http, private _config: Config) {
      var apiUrl = _config.get('apiUrl');   // from development.json
      var env = _config.getEnv('env');      // from env.json (also holds shared config)
    }
}

Config class also ships with methods to store and get application wide custom settings.

import {Config} from '../../config/config';

@Injectable()
export class Foo {

    constructor(private _http: Http, private _config: Config) {
      _config.setCustom('isMember', true);
    }
}

export class Bar {

    constructor(private _config: Config) {
      var isMember = _config.getCustom('isMember');
    }
}

Use jQuery

jQuery being installed as typings dependency. This mean jQuery will be available as static object in your ts.

declare var jQuery: JQueryStatic;
// now use jQuery as you normally use

Help me make it better by your contribution.

@author Hasan Hameed [email protected]

angular2-dashboard-starter's People

Contributors

hasanhameed07 avatar hasanhameedtp avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

angular2-dashboard-starter's Issues

Property 'iCheck' does not exist on type 'JQuery'.

I cloned the project and npm install, then I use npm start , but failed.

src/app/auth_module/signup/signup.component.ts(44,25): error TS2339: Property 'iCheck' does not exist on type 'JQuery'.

Why?

DEV and Prod Build

First of all thanks for this starter, i need to create a Prod build, could you please provide the steps.

Updating Angular?

Hey just curious about updating to angular2 to the rc1 and above, any suggestions on this? thanks

half screen issue

When the home pages loads, it only occupies half of the screen. After I resize the screen, it becomes normal. Is there any bug that cause this problem?

Plugins usage

AdminLTE integrates some third part libraries like Datatables or Chartjs. I'm a beginner in Angular and I'm not sure which is the best way to call this plugins inside this dashboard. I've seen some projects (ng2-charts for example) that create Angular2 components to solve this. Do I really need to integrate this projects? (it's not possible for the moment, because they use the RC candidate of angular). Where can I find some examples?

Thanks!!

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.