-
Nodemon.io
Monitor for any changes in your node.js application and automatically restart the server - perfect for development
-
SurveyJS
Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
-
devspace-plugin-loft
Loft Plugin for DevSpace - adds commands like `devspace create space` or `devspace create vcluster` to DevSpace
-
devspace
DevSpace - The Fastest Developer Tool for Kubernetes ⚡ Automate your deployment workflow with DevSpace and develop software directly inside Kubernetes.
Engineers have always tried to make developing applications as easy as possible. Over time, many different languages and frameworks have implemented hot reloading functionality, such as nodemon in Node.js. Simply put, hot reloading is the process of automatically rebuilding or recompiling your application when you save any changes to the application files.
Now you'll look at an example of how hot reloading is done using DevSpace, after which you'll be given an explanation of how it works under the hood. You can find the code for this article in this GitHub Repo.
The relevant part for this article starts on line 60 with replacePods. The first line is the imageSelector, which specifies that DevSpace will look for a container that has the image specified in this field to replace. Looking at the next line, you can see that the container in the pod will be replaced by a container that is based on the image loftsh/javascript:latest, which is a development optimized image provided by Loft. So far, this is fairly straightforward. However, the next part needs an explanation.
$ devspace init ____ ____ | _ \ _____ __/ ___| _ __ __ _ ___ ___ | | | |/ _ \ \ / /\___ \| '_ \ / _` |/ __/ _ \ | |_| | __/\ V / ___) | |_) | (_| | (_| __/ |____/ \___| \_/ |____/| .__/ \__,_|\___\___| |_| ? How do you want to deploy this project? [Use arrows to move, type to filter] > helm: Use Component Helm Chart [QUICKSTART] (https://devspace.sh/component-chart/docs) helm: Use my own Helm chart (e.g. local via ./chart/ or any remote chart) kubectl: Use existing Kubernetes manifests (e.g. ./kube/deployment.yaml) kustomize: Use an existing Kustomization (e.g. ./kube/kustomization/)
Related posts
-
Say Goodbye to Docker Volumes 👋
-
Set up Hot Reload for Typescript ESM projects
-
Guia para Iniciantes: Criando uma API com Node.js, PostgreSQL e Padrão MVC
-
Building a React/Express Stripe Donation Form
-
Best ways to fix Nodemon error- nodemon.ps1 cannot be loaded because running scripts is disabled on this system.