Knex.js is a “batteries included” SQL query builder for Postgres, MSSQL, MySQL, MariaDB, SQLite3, Oracle, and Amazon Redshift designed to be flexible, portable, and fun to use. It features both traditional node style callbacks as well as a promise interface for cleaner async flow control, a stream interface, full featured query and schema builders, transaction support (with savepoints), connection pooling and standardized responses between different query clients and dialects.
Metadata for SPAs
Have you ever consider Metadata in SPAs? Without metadata, we weaken our ability to demonstrate relevance to search engines. That, in turn, lowers our rankings and reduces the number of consumers to our sites(ecommerce, social). Metadata is a series of micro-communications between site and search engines. Nearly all metadata is invisible to visitors. It lives …
Ant Design vs. Material UI
I would like to share difference between them from stackshare.io here. Ant Design: A set of high-quality React components. An enterprise-class UI design language and React-based implementation. Graceful UI components out of the box, base on React Component.Material Design: Google’s Material Design. Material Design is a unified system that combines theory, resources, and tools for crafting digital …
Fabric.js
Fabric.js is a framework that makes it easy to work with HTML5 canvas element. It is an interactive object model on top of canvas element. It is also an SVG-to-canvas parser. http://fabricjs.com/ Install with bower Install with npm Free Drawing http://fabricjs.com/freedrawing
Mongoose Virtuals
Mongoose supports virtual attributes. Virtual attributes are attributesthat are convenient to have around but that do not get persisted to mongodb. When we have m:1, m:n relationship, we may need to fetch all related data. For example; we have User and Portfolio schemas and Portfolio has user ID as foreign key. Let’s suppose when we …
Laravel-Livewire
Livewire is a full-stack framework for Laravel that makes building dynamic interfaces simple, without leaving the comfort of Laravel. Building modern web apps is hard. Tools like Vue and React are extremely powerful, but the complexity they add to a full-stack developer’s workflow is insane. It’s not like anything you’ve seen before, the best way to …
Kibana – Your window into the Elastic Stack
Kibana is a free and open user interface that lets you visualize your Elasticsearch data and navigate the Elastic Stack. Do anything from tracking query load to understanding the way requests flow through your apps. Build visualizations simply and intuitively Start exploring even if you’re not sure where you’re headed. Drag and drop fields, and …
google oauth2 – googleapis
We can use googleapis npm to implement google oauth2 functionality.Main thing is to create new one by refresh token when access token is expired. Get authorization code from client. Get refresh token from authorization code. Add following code to generate access token automatically when it is expired oauth2Client.on(‘tokens’, (tokens) => { if (tokens.refresh_token) { // store the refresh_token in my database! console.log(tokens.refresh_token); } console.log(tokens.access_token);});









