Nekohouse API and control tower.
- Go 83.1%
- PLpgSQL 16.9%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| cmd | ||
| database | ||
| functionality | ||
| lib | ||
| models | ||
| nekomata | ||
| routes | ||
| .env.example | ||
| .gitignore | ||
| .onedev-buildspec.yml | ||
| config.example.yml | ||
| go.mod | ||
| go.sum | ||
| README.md | ||
| sqlc.yml | ||
Nekomata API (nkm-api)
🚀 Requirements
- Go 1.24
- PostgreSQL 17
- Dragonfly
- Air — for hot reloading
⚡ Quick Start
-
Install all requirements
-
Copy
config.example.ymltoconfig.ymland update the config -
Install dependencies:
go mod tidy -
Start the server:
go run ./cmd/gen go run ./cmd/server # or with hot reload air
📚 API Docs
Interactive API documentation will be available at:
http://<base-address>/api/v1/docs
OpenAPI specification will be available at:
http://<base-address>/api/v1/openapi.jsonhttp://<base-address>/api/v1/openapi.yaml
🔐 Permission Management
Permission Calculator
The project includes a command-line tool to help calculate permission values for user roles:
go run ./cmd/permissions
This interactive tool allows you to:
- Select and deselect individual permissions
- View the final uint64 permission value
- See binary and hexadecimal representations
- Get a human-readable list of selected permissions