Giter Site home page Giter Site logo

ng-boilerplate's Introduction

jarias's NgBoilerplate

WIP! I'm actively adding lots of contents without apparent order from all my project in order to create a resusable codebase, expect changes!

This is intented to be a very opinionated Angular app boilerplate from which I quickstart most of my project. It is biased towards my own personal preference and opinions which are in fact stolen inspired by many other experienced and awesome developers.

This is still an ongoing work, I will update this readme with further information once I feel it is stable enough!

Feel free to criticise and give advice!

  • angular5
  • ngrx
  • material
  • flex-layout
  • auth0

ng-boilerplate's People

Contributors

jacintoarias avatar angular-cli avatar

Stargazers

Josh Sullivan avatar

Watchers

James Cloos avatar  avatar

ng-boilerplate's Issues

Get rid of TokenService by injecting Store into JwtService factory

TokenService only exists to bypass store and get the token inside the JwtOptionsFactory. There must be a way to inject the store and select it directly.

export function jwtOptionsFactory(tokenService) {
  return {
    tokenGetter: () => {
      return tokenService.getAccessToken().toPromise();
    },
    whitelistedDomains: environment.jwtOptions.whitelistedDomains,
  };
}
    JwtModule.forRoot({
      jwtOptionsProvider: {
        provide: JWT_OPTIONS,
        useFactory: jwtOptionsFactory,
        deps: [TokenService]
      }
    }),

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.