Skip to content

FemboyKZ/api

Repository files navigation

FKZ API

For tracking game servers, players and more.

API Documentation

Interactive API documentation is available at /docs when the server is running:

The documentation is automatically generated from JSDoc comments in the code using Swagger/OpenAPI 3.0.

Prerequisites

  • Node.js (v20 or higher)
  • MySQL/MariaDB database(s)
  • Game servers to monitor (CS:GO, CS2, etc.)
  • RCON access to servers (optional, for Steam IDs and extended data)
  • Steam API Key
  • Docker is recommended

Project Structure

api/
├── config/          # Server configuration files
├── db/              # Database schemas and migrations
├── docker/          # Custom Docker configuration
├── scripts/         # Data management scripts
├── src/
│   ├── api/         # API route handlers
│   ├── config/      # API Internal configuration
│   ├── db/          # Database connection
│   ├── services/    # Service logic (updaters, queries)
│   ├── utils/       # Utilities (logger, validators, auth, error handling)
│   ├── app.js       # Express app configuration
│   └── server.js    # Server entry point
├── tests/           # Tests for server endpoints
└── package.json

License

See LICENSE file for details.

Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Submit a pull request

Contributors 2

  •  
  •  

Languages