AutoQuery Usage and Deployment (GitHub Actions)
This article introduces the rapid development workflow based on the AutoQuery framework, covering key steps from environment initialization to production deployment. First, the `x` command-line tool is installed via `dotnet tool`, and the `x new` command is used to create a Web project. `autocrudgen` is then leveraged to automatically generate SQLite database models and basic code, simplifying backend development tasks. The deployment section details how to configure Docker and Docker Compose on an Ubuntu 22.04 server, including specific commands for updating system sources, adding the official Docker GPG key, and installing the latest CE version. The article also demonstrates how to use `x mix build` to generate an Nginx proxy configuration script, upload it to the server via `scp`, and start services using `docker compose` commands, thereby implementing an automated deployment solution based on GitHub Actions. Additionally, the text provides practical details such as Let's Encrypt email configuration, SSH connection parameters, and user permission settings, aiming to help developers efficiently build and deploy AutoQuery-based applications. A link to a related video tutorial is provided at the end for further learning.