GithubHelp home page GithubHelp logo

kadamsan / angular-boilerplate Goto Github PK

View Code? Open in Web Editor NEW

This project forked from brnrajoriya/angular-boilerplate

0.0 1.0 0.0 58 KB

Ready to use Angular Boilerplate with Basic Required features. For API's check https://github.com/brnrajoriya/Laravel-Boilerplate

HTML 23.55% TypeScript 60.34% CSS 16.12%

angular-boilerplate's Introduction

Angular Ready To Go Boilerplate by Brn.Rajoriya

** UI Features

  • Material And Bootstrap Configurations

** Application Features

  • CRUD Dummy Implementation - With Http Api's, Sorting, Headers Solution
  • Authentication Guard & Service
  • Login / Registration / Forgot / Reset Components
  • File Upload - Images / Videos Upload with Form Data
  • Staging Environment Setup
  • JWT Intercepter Helper
  • Error Intercepter Helper
  • Model interfaces
  • Separate Modules
  • Separate Services
  • Separate Router Module

Prerequisites

  • Node - v8.11.3
  • NPM - v6.4.0
  • Angular CLI - v7.1.4

Note - The System User Should have permission to change in Prerequisites Folders

Installation

  • npm install // It will install all the dependencies
  • ng serve -o // It will open browser with localhost:4200
  • ng build // It will create build with local mode - Set from \src\environments\environment.ts
  • ng build --configuration=stage // It will build the app with Staging mode - Set from \src\environments\environment.stage.ts
  • ng build --prod // It will create build with production mode - Set from \src\environments\environment.prod.ts

Create New Component\Service\route

Model/Service

  • ng g service _services/dummy and new Model in _models folder

CRUD View & Controller / HTML,CSS,TS

  • ng g component _components/dummy/all
  • ng g component _components/dummy/create
  • ng g component _components/dummy/edit
  • ng g component _components/dummy/show

create a new index.ts file under _components/dummy folder

  • export all classes

    export * from './all/all.component';

    export * from './create/create.component';

    export * from './edit/edit.component';

    export * from './show/show.component';

New Route

`{ path: 'dummies', canActivate: [AuthGuard],
	children: [
		{ path: '', redirectTo: 'all', pathMatch: 'full' },
		{ path: 'all', 
			children: [
	    		{ path: '', redirectTo: '1', pathMatch: 'full' },
				{ path: ':page_no', component: AllDummyComponent },
			]
		},
		{ path: 'create', component: CreateDummyComponent },
		{ path: 'edit/:id', component: EditDummyComponent },
		{ path: 'show/:id', component: ShowDummyComponent }
	]
},`

angular-boilerplate's People

Contributors

brnrajoriya avatar btopro avatar

Watchers

 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.