preboot / angular-webpack

A complete, yet simple, starter for Angular v2+ using webpack
MIT License
1.29k stars 556 forks source link

This angular2-webpack saved my day #252

Closed calebeaires closed 7 years ago

calebeaires commented 7 years ago

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.

Foxandxss commented 7 years ago

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.

calebeaires commented 7 years ago

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.

ollwenjones commented 7 years ago

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.