Category: Python
-
Post Views: 63 1. Background: Why do this environment In order to learn AI programming tools (such as Tongyi Spirit Code), I am going to implement a ‘Music Alarm Clock’ small project.Before starting coding, I set up a reusable python dev container development environment. 2. Description of the technology stack 3. Project catalog structure (core focus) music-alarm/├── .devcontainer/│ └── devcontainer.json├──…
-
Post Views: 42 1. Reference: Build a RESTful API (go.dev) with Go and Ginhttps://go.dev/doc/tutorial/web-service-gin— Go official tutorial for building simple web services with GIN. 2. Install Go. Docker Compose One-click startup (refer to Hyperf project). I want to ‘write a good configuration, a command starts the entire development environment’, which is most convenient to use docker-compose.yml, which is almost the…
-
Post Views: 14 1. Reference URL:https://blog.csdn.net/zhanghan18333611647/article/details/81434786. Implemented through the program (Python version 2.x ). Create a new migrate.py file. 2. On the self-built Redis machine, connect the self-built Redis and Tencent Cloud come with Redis. Tencent Cloud’s own redis database 0 is empty. It is planned to use this database as the migration target. as shown in Figure 1 3.…
-
Post Views: 15 1. In the ALL option for configuring your application, there is no Yii2 framework, only PHP can be selected, as shown in Figure 1 2. Install PHP integration for Sentry. The recommended method is to use composer, but decided not to use this scheme for the time being, as shown in Figure 2 3. Search yii2…
-
Post Views: 15 1. Supervisor is a small system that can manage and monitor various processes in UNIX-like systems. The configuration file of supervisor is a Windows-ini style (Python ConfigParser) file. 2. The program configuration item of the configuration file of Supervisor 3. Create a new \build\c_files\etc\supervisord.d\yii-task-submit.ini, as shown in Figure 1 4. StopWaitSecs, after the program sends a stop…