Giter VIP home page Giter VIP logo

admin-delivery-lgx's Introduction

Sofbox Dashboard Angular

This project was generated with Angular CLI version 8.3.3.

Development server

Run ng serve for a dev server. Navigate to http://localhost:4200/.

Working Steps

Create new Layout page

  1. Create layout module ng g m layouts/layout2 --routing=true
  2. Create default index component ng g c layouts/layout2/index --export=true -s --skipTests=true --viewEncapsulation=None
  3. Add Route in layout2-routing.module.ts
    const routes: Routes = [
      {
        path: '',
        component: IndexComponent,
        children: [
        ]
      }
    ];
    
  4. After append routes in app-routing.module.ts
    const routes: Routes = [
      { path: 'layout2', loadChildren: './layout2/layout2.module#Layout2Module' }
    ];
    

Create new Page

  1. Create page component ng g c views/page-name --export=true -s --skipTests=true
  2. Add Route in views-routing.module.ts
    const routes: Routes = [
      {
        path: 'page-name',
        component: PageNameComponent
      }
    ];
    

Create new Component

Create component

ng g c components/sofbox/component-name --export=true -s --skipTests=true

Export Component

@NgModule({
  declarations: [LoaderComponent, ScrollTopComponent],
  exports: [
    LoaderComponent,
    ScrollTopComponent,
    /** --- Add Your Component -- **/
  ],

Add new CSS & JS

Append CSS in angular.json

    "architect": {
             "build": {
               "builder": "@angular-devkit/build-angular:browser",
               "options": {
                 .....
                 "styles": [
                   "src/styles.scss",
                   /* -- ADD CSS -- */
                 ],

Append JS in angular.json

    "architect": {
             "build": {
               "builder": "@angular-devkit/build-angular:browser",
               "options": {
                 .....
                 "scripts": [
                    "node_modules/jquery/dist/jquery.min.js",
                    /* -- ADD JS -- */
                 ],

Generate Redux state

####Action ng generate action store/actions/

####Reducer ng generate reducer store/reducers/ ####Selector ng generate selector store/selectes/

Build App

ng build --aot=true --extractCss=true --prod=true --serviceWorker=true

####After firebase deploy

admin-delivery-lgx's People

Contributors

samgyngobr avatar lucasmoraescampos 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.