preboot/angular-webpack

This angular2-webpack saved my day

Closed this issue · 3 comments

I have migrated my app to your angular2-webpack to check if this seed will get along with some module I am trying to use: KnexJS. Happly, it works.

Before this decision, I have tried to implement this module (KnexJS) with angular-cli / official angular quickstarter and AngularClass starter. KnexJS module doesn`t works as expected on those starters.

npm install knex;
npm install @types/knex;

The problem I faced is explenaid on stackoverflow question. May you help us understand why those webpack starters dont work with this module as your preboot/angular2-webpack does very well.

Knex is an SQL ORM to node, but it can be built using a JavaScript build tool such as browserify or webpack. In fact, the documentation from it uses a webpack build.

All the solutions named here (and my starter) are frontend starters and knex is a server side library. It is not supposed to be used on any of them.

Knex has function that let us create sql string with the use of toString(). So, there is a use on browser too. One use of it is to take advantage of websql.

Forming database queries on the client-side sounds like a major security risk to me, or is websql a local storage thing? Looks like the W3C abandoned the spec in 2010.