Build a CRUD App With Only JSON Files Using a Node.js API
https://adevait.com/nodejs/build-a-crud-app-with-only-json-files
#coding
#node
https://adevait.com/nodejs/build-a-crud-app-with-only-json-files
#coding
#node
Adeva
Build a CRUD App With Only JSON Files Using a Node.js API | Adeva
In this tutorial, we'll learn how to create CRUD operations with just JSON files. All you need to follow along is basic Node.js knowledge.
Building a simple tooltip component that never goes off screen
https://medium.com/carwow-product-engineering/building-a-simple-tooltip-component-that-never-goes-off-screen-c7039dcab5f9
#coding
#vue
https://medium.com/carwow-product-engineering/building-a-simple-tooltip-component-that-never-goes-off-screen-c7039dcab5f9
#coding
#vue
Medium
Building a simple tooltip component that never goes off screen
I‘ve seen plenty of UI libraries for tooltips and popovers, but none of them satisfied me. So I built a simple and lightweight one instead.
Tailwind CSS and Dynamic or Conditional Class Names in Vue
https://www.vincentschmalbach.com/tailwind-css-and-dynamic-or-conditional-class-names-in-vue/
#coding
#css
#tailwind
https://www.vincentschmalbach.com/tailwind-css-and-dynamic-or-conditional-class-names-in-vue/
#coding
#css
#tailwind
Vincent Schmalbach
Tailwind CSS and Dynamic or Conditional Class Names in Vue
Tailwind CSS is designed to include only the classes used in your project in the final build CSS file. This approach keeps the file size small and optimizes load times.
Download an Entire Webpage with JavaScript, Including Inline CSS
https://medium.com/@neog.anupal101/download-an-entire-webpage-with-javascript-including-inline-css-d38866544c5a
#coding
#js
https://medium.com/@neog.anupal101/download-an-entire-webpage-with-javascript-including-inline-css-d38866544c5a
#coding
#js
Medium
Download an Entire Webpage with JavaScript, Including Inline CSS
Have you ever wanted to download an entire webpage, including its CSS, with a simple click? With the power of JavaScript, you can create a…
Scaling WebSocket Connections using Shared Workers
https://dev.to/ayushgp/scaling-websocket-connections-using-shared-workers-14mj
#coding
#js
#websocket
https://dev.to/ayushgp/scaling-websocket-connections-using-shared-workers-14mj
#coding
#js
#websocket
DEV Community
Scaling WebSocket Connections using Shared Workers
Use SharedWorkers to reduce your server load by managing tabs on same client on one socket connection.
Making and publishing components with Vue 3 and Vite
https://www.matijanovosel.com/blog/making-and-publishing-components-with-vue-3-and-vite
#coding
#vue
https://www.matijanovosel.com/blog/making-and-publishing-components-with-vue-3-and-vite
#coding
#vue
Matija Novosel
Learn how to distribute UI components using Vite and Vue
How to run a Windows cmd.exe command using Node.js and detach the process?
Replace
Keep in mind that detaching the process means that it will continue running even if the parent Node.js process exits. Ensure that your Node.js script handles any necessary cleanup or waits for the child process to complete if needed.
#coding
#node
const { spawn } = require('child_process');
// Command to run (replace it with your actual command)
const command = 'cmd.exe';
const args = ['/c', 'your_command_here'];
// Spawn the process
const child = spawn(command, args, {
detached: true,
stdio: 'ignore', // This option redirects the stdio of the child process to /dev/null
});
// Unref the child process to allow the parent to exit independently
child.unref();
Replace
'your_command_here'
with the actual command you want to run. The detached: true
option ensures that the child process runs independently of the parent process. The stdio: 'ignore'
option redirects the standard input/output/error of the child process to /dev/null
(or equivalent on Windows), which is suitable for a detached process.Keep in mind that detaching the process means that it will continue running even if the parent Node.js process exits. Ensure that your Node.js script handles any necessary cleanup or waits for the child process to complete if needed.
#coding
#node