go-admingo-admin
  • Guide
  • Development
    • Advanced
    • Commands
  • Advanced
  • Help
  • GitHub
  • Changelog
⌘ K
Standard Practice
Standard Module Development
Backend Basics
Backend Directory Structure
Backend Config File
Starting the Backend
Frontend Basics
Frontend Directory Structure
Frontend Config File
Starting the Frontend
Development Patterns
Actions Pattern
Hand-Written Pattern
First API Endpoint
Layered Development
API Layer
Service Layer
DTO Definitions
Model Definitions
Router Registration
Multi-Environment Config
Database Table Conventions
Data Permissions
Response Format
Code Generation
Pre-Generation Setup
Generating Business Code
One-Click Menu Generation
Binding APIs to the Menu
Configuring Role Permissions
Verifying the Feature
Generating Code with an LLM
Advanced Capabilities
Runtime Core API
Authentication & Authorization
Logging
Request Tracing
Cache
Queue
File Upload
Rate Limiting
Scheduled Jobs
Air Hot Reload
Swagger Docs
Code Generation Tool
Last updated:
Open-source MIT Licensed | Copyright © 2020-present
Powered by go-admin-team

TABLE OF CONTENTS

‌
‌
‌
‌

Start the Service

Once the project is configured, run:

bash
go run main.go server -c config/settings.yml

Seeing the service's startup log output means it worked.

Verify

Visit http://127.0.0.1:8000/info in a browser — a {"message":"ok"} response means the service is up and handling requests. This is the most direct health check, and it doesn't depend on the database being configured correctly.

Visiting the root path http://127.0.0.1:8000/ (only available outside prod mode) shows a welcome page that embeds this documentation site; visiting /swagger/admin/index.html shows the API docs. Neither route is registered when application.mode: prod, since they're development conveniences.

Changing the Listen Address and Port

Open config/settings.yml — the relevant fields are application.host and application.port:

yml
settings:
application:
# listen address; default 0.0.0.0 (all interfaces, reachable from other devices on the LAN)
host: 0.0.0.0
# listen port
port: 8000

To listen on localhost only, change host to 127.0.0.1; to serve on a different port, change port. A restart is needed for changes to take effect.

WARNING

Where to get help:

If anything in this guide is unclear, please open an issue.