跳转至

chok-server

暂无简介,欢迎浏览仓库了解更多。

项目信息
仓库 https://github.com/Maicarons/chok-server
主要语言 Go
Stars 0
类型 原创项目
许可证 GPL-3.0
最近更新 2026-05-19

CHOKAPP Server

Go backend API server with SQLite database.

Tech Stack

  • Go 1.20+
  • SQLite (via glebarez/go-sqlite)
  • Standard library HTTP server
  • CORS support (rs/cors)

Setup

go run main.go

Server runs on http://localhost:8888.

API Endpoints

Method Endpoint Description
GET /api/apps/hot?limit=10 Hot apps by downloads
GET /api/apps/latest?limit=10 Latest apps by date
GET /api/apps/ranking?type=all_time&page=1&size=20 Ranked apps
GET /api/apps/search?q=keyword Search apps
GET /api/apps/:uid Get app by UID
POST /api/apps/download Record download
POST /api/apps/view Record view
POST /api/apps/report Report issue
GET /api/issues List issues
GET /api/collections List collections
GET /api/stats Dashboard stats
POST /api/sync Sync data from JSON

Build

go build -o chok-server.exe .