-

flexsearch tutorial
flexsearch It’s a module available through npm or yarn to index in-memory data. Read more
-
Load dynamic data into a table using Lightning Web Component
Result Lightning Component Create the component thus: <aura:component implements=”force:appHostable” controller=”OpportunitiesTabController”> <aura:attribute name=”data” type=”Object”/> <aura:attribute name=”columns” type=”List”/> <aura:handler name=”init” value=”{! this <}” action=”{! c.doInit }”/> <article class=”slds-card slds-p-bottom_x-small”> <div class=”slds-card__body slds-card__body_inner”> <div class=”slds-m-top_x-small”> <lightning:button aura:id=”refresh” label=”Refresh” title=”Refresh” onclick=”{!c.doInit}” /> </div> <div class=”slds-text-heading_medium slds-m-top_x-small”>Opportunities</div> <lightning:datatable columns=”{! v.columns }” data=”{! v.data }” keyField=”id” onrowaction=”{! c.handleRowAction }”/> </div> </article> Read more
-

jsxBracketSameLine – Prettier how to configure
How to install Prettier npm install prettier –save-dev How to configure Prettier touch .prettierrc.json Add some default configuration: { "trailingComma": "es5", "tabWidth": 4, "printWidth": 120, "semi": true, "singleQuote": false, "useTabs": false, "quoteProps": "as-needed", "jsxSingleQuote": false, "bracketSpacing": false, "bracketSameLine": true, "arrowParens": "avoid", "requirePragma": false, "insertPragma": false, "proseWrap": "preserve", "endOfLine": "lf" } Note: jsxBracketSameLine is deprectaed since Read more
-
How to configure and use testcontainer in Node.js
About testcontainer as a Node.js module to create dynamic containers The source code https://github.com/andrescanavesi/testcontainer-example Photo by Andres Canavesi on Unsplash Read more
-
Error: ER_NOT_SUPPORTED_AUTH_MODE: Client does not support authentication protocol requested by server
Error: ER_NOT_SUPPORTED_AUTH_MODE: Client does not support authentication protocol requested by server; consider upgrading MySQL client — to deal with ER_NOT_SUPPORTED_AUTH_MODE error. Only run this line for local dev ALTER USER ‘root’@’localhost’ IDENTIFIED WITH mysql_native_password BY ‘root’; — create our main user for local dev CREATE USER IF NOT EXISTS ‘my_user’@’%’ IDENTIFIED BY ‘root’; CREATE DATABASE Read more
-

How to connect to a MySQL database in Node.js
To connect to a MySQL database in Node.js is pretty straightforward with the module mysql2. This example is just a starting point Read more