/Horizon-API

The simplified publice version of the Horizon game server API. This can run on all non-enterprise Horizon Game server instances to allow external services to communicate with Horizon

Primary LanguageRust

Horizon API

Horizon API is a simple RESTful API built using Rust. This API allows you to create new users and fetch user information based on their username.

Features

  • Create User: Register a new user with a username and password.
  • Get User: Retrieve user information by username.

Getting Started

Setup

  1. Clone the repository:

    git clone https://github.com/Stars-Beyond/horizon-api.git
    cd horizon-api
  2. Setup the database: Run Diesel migrations to set up the database schema.

     mv ./.env.example ./.env

Running the API

To start the Rocket server, run:

cargo run

The server will be running at http://localhost:8000.