apioak-admin
is the control plane backend project of apioak
gateway, based on Go 1.16 and Gin 1.7.2 development, the project matches the data surface project apioak.
The project aims to simplify the use of apioak
, optimize the user's operation, and achieve a minimal operation to complete the launch and release of a complete service configuration.
For the convenience of use, the front-end and back-end projects are merged and packaged as out-of-the-box executable files, which only need to be downloaded in Releases Compress the package and decompress it, then configure the config/app.yaml
configuration file in the corresponding directory and execute the executable file to complete the deployment of the project. Just access the contents of the server
configuration item in the config/app.yaml
configuration file.
go build -o apioak-admin main.go
For the system dependencies necessary to install apioak-admin
on different operating systems (MySQL >= 5.7 or MariaDB >= 10.2
, etc.), please refer to: Dependency Installation Documentation.
-
Import the database configuration file to
MySQL
orMariaDB
, the data table configuration file path/{path}/config/apioak.sql
. -
Create a
config
directory in the directory where theapioak-admin
executable file generated after compiling the command is located, and copy the configuration fileapp_example.yaml
under theapioak-admin
project to this directory, and change the name toapp.yaml
, and then configure in that configuration file.database
: database connection information.token
: User login to issuetoken
configuration information.server
: Information about accessing the service after starting the service.apioak
: Data plane configuration synchronization connection information.logger
: Record log configuration information.validator
: The language of parameter verification information. zh:Chinese (default) / en:English
./apioak-admin