# dc-news-admin-api **Repository Path**: kakkk/dc-news-admin-api ## Basic Information - **Project Name**: dc-news-admin-api - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-12-17 - **Last Updated**: 2021-12-17 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # dc-news-admin-api 字节跳动训练营项目后台管理系统后端 ## 技术栈 - Gin - Gorm - jwt-go - MySQL - Zap ## 环境 - Go v1.16+ - Mysql 8.0+ ## API文档 [https://docs.apipost.cn/preview/468b7d7c0f464469/336e2e3e0236e76c](https://docs.apipost.cn/preview/468b7d7c0f464469/336e2e3e0236e76c) ## 本地运行(Windows) ### 安装Golang环境 你已经是个成年人了,自行百度吧 ### 设置国内源 ``` go env -w GOPROXY=https://goproxy.cn,direct ``` ### clone仓库 ``` git clone https://gitee.com/kakkk/dc-news-admin-api cd dc-news-admin-api ``` ### 编译 ``` go mod tidy go build ``` ### 修改配置文件 在`./conf/`目录新建`config.ini`配置文件: ``` port = 8080 #后端服务端口 release = false #是否为release模式 api_domain = http://localhost:8080 #后端api域名和端口 [mysql] user = root #数据库用户 password = root #数据库密码 host = 127.0.0.1 #数据库地址 port = 3306 #数据库端口 db = dc_news #数据库名 ``` ### 运行 ``` ./dc-news-admin-api.exe ```