Create new project

  • Step

    1. Create new project

    
                  ng new angular-bootstrap-examples
                  cd angular-bootstrap-examples
                  ng serve
                 

    2. Create important modules

    
                ng generate module admin 
                ng generate module customer 
                ng generate module shared
                ng generate module core
    
                

    3. Create important components

    
                ng g c home 
                ng g c contact-us 
                ng g c product 
                ng g c user-profile
                

    4. Create module wise components and services

    inside admin module

    
                
                ng g c admin/admin-dashboard 
                ng g c admin/admin-login 
                ng g c admin/user-crud 
    
                ng g s admin/services/admin
                

    inside customer module

    
            ng g c customer/buyer/buyer-dashboard 
            ng g c customer/buyer/checkout 
            ng g c customer/seller/seller-dashboard 
            ng g c customer/signin-signup
    
            ng g s customer/services/customer
            

    inside core module

    
            ng g s core/services/api 
            ng g interceptor core/interceptors/http 
    
             

    inside shared module

    
    ng g d shared/directives/number-only 
    
    ng g c shared/layouts/footer 
    ng g c shared/layouts/header 
    ng g c shared/layouts/page-not-found 
    
    
    ng g s shared/service/auth-guard 
    ng g s shared/serrvices/login-signup
    ng g s shared/services/product 
    ng g s shared/services/user