Use Agently to generate code by calling ChatGPT based on requirements.
- Python
- Go
- gin
- gorm
- Vue
pip install -U Agentlypip install -U openai httpx typer loguru
python3 ./backend.py YOUR_PROJECT_NAME
The program will read prd.txt as the requirements and generate the following files in the YOUR_PROJECT_NAME directory:
prd.md: Requirements document
*.go: Program code
- Modify the database connection information in
db.go. - Modify the listen port in
main.go. - Navigate to the
YOUR_PROJECT_NAMEdirectory and adjust the code as needed, as the output from the LLM may have some issues.
Navigate to the YOUR_PROJECT_NAME directory and execute the following commands:
go mod tidy
go build
./YOUR_PROJECT_NAME