air
entr
air | entr | |
---|---|---|
55 | 52 | |
19,688 | 4,894 | |
3.0% | 1.9% | |
8.1 | 6.1 | |
14 days ago | about 1 month ago | |
Go | C | |
GNU General Public License v3.0 only | GNU General Public License v3.0 or later |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
air
-
Building a RESTful API with Go Fiber: An Express-Inspired Boilerplate
Note: Make sure you have Air installed. See ๐ How to install Air
-
My first CLI with Go
The last problem for now is a hot reload module. Whenever we create a fiber app we don't have any change listener by default. If fiber has this already and I do not know about it then forgive me for that I am relatively new to this. If you know anything about this, let me know in the comments. To solve this problem I figured out to include air in the project.
-
Setting up Delve and Air to debug Golang with VS Code
We will use https://github.com/air-verse/air to do live reloading for us.
- Rails Is Good Enough
-
Simple Directory Watcher to Restart Dev Server
Ever since I have been making APIs there was always a simple way to enable hot reloading. It is easy in Go too, you just have to use air. It so simple, just write air and you have hot reloading. Now you may ask the question that if it's so great what this post is for?
-
Hot reloading in Go applications
Air is another library that enables hot reloading in Go applications. To use it, install it on your machine using the command below:
-
Live reloading in Go
To enable live reloading in Go we will checkout the command tool, Air - Live reload for Go apps.
-
Como configurar Golang com live reload utilizando Air ๐
โ๏ธ Repositรณrio do Air
-
๐ The Gowebly CLI has grown to v2.0.0
This is made possible thanks to the Air tool, which now comes with every project you create. The configuration is as follows:
- 6 ๐ฅ Awesome Golang packages (web devs)
entr
-
Mastering Hot Reloading: Any Language, Any Editor
entr, A utility for running arbitrary commands when files change, yes basically this bad boy lets you run any command (or bunch of them as will cover in Makefile) when files change.
- Run arbitrary commands when files change
- Rewriting Rust
-
Building Bubbletea Programs
This is the same TUI app workflow I've settled on in other languages. Three notes:
- entr is a good livereload tool: https://eradman.com/entrproject/. I prefer to wrap the livereload scripts in a Makefile, under something like `make dev`.
- Managing layout arithmetic by yourself is a real pain. A widget abstraction like Bubbletea's is very helpful. Also, don't forget about weird Unicode characters (eg. emoji) potentially breaking width calculations.
- Since this follows the Elm architecture, consider storing your data the Elm way into one big, flat Model. Elm webapps turn into headaches when you split state among submodels. I think the same happens in TUI apps. I'm glad the author found a solution with a tree of models and message passing. But personally, I'd rather have a Model with 100 fields than the complexity of sumbodels.
-
Simple Directory Watcher to Restart Dev Server
Do I really need a whole Go library to do that? There must be a lighter or in other words Linux solution. I came across few solutions but not all had the capability to handle all types of directory changes. I wanted to be able to watch for file: create, edit, move, delete. For example entr doesn't rerun the command when a new file is added to the directory that is being watched.
- Entr โ tool for watching files and running commands
-
Meet entr, the standalone file watcher
entr ("Event Notify Test Runner"; GitHub), is a command-line tool written by Eric Radman that allows running arbitrary commands whenever files change.
- How to build a website without frameworks and tons of libraries
- How to start a Go project in 2023
-
[Guide] A Tour Through the Python Framework Galaxy: Discovering the Stars
Try entr for fast reloading. Another one is hupper.
What are some alternatives?
reflex - ๐ธ๏ธ Web apps in pure Python ๐
watchexec - Executes commands in response to file modifications
gow - Missing watch mode for Go commands. Watch Go files and execute a command like "go run" or "go test"
nextjs-tailwind-ionic-capacitor-starter - A starting point for building an iOS, Android, and Progressive Web App with Tailwind CSS, React w/ Next.js, Ionic Framework, and Capacitor
modd - A flexible developer tool that runs processes and responds to filesystem changes
swc-node - Faster ts-node without typecheck