Skip to content
This repository has been archived by the owner on Mar 15, 2022. It is now read-only.

Latest commit

 

History

History
59 lines (38 loc) · 1.57 KB

README.md

File metadata and controls

59 lines (38 loc) · 1.57 KB

Citizentools

API for the Star Citizen MMO

What it is

Citizentools is an API to access information about players and their organisations in the Star Citizen MMO.

Documentation

The API documentation has been created with the sublime Slate. It's here.

Getting things up and running for development

(Provided you have a Ruby environment. If not, look here.)

  • After cloning the repository you might want to install the necessary Gems:

    bundle install

  • Create the log directory:

    mkdir log

  • Fire up the API server:

    ./server

  • Run some tests:

    ruby test.rb

  • Access the API in your favorite browser:

    http://localhost:4567/api/v2/citizen/croberts68 (WEBrick is listening on 0.0.0.0 too.)

Installing production-ready

  • You need to install an application server like Phusion Passenger.

  • Configure your web server like I did for Apache:

    PassengerRuby /your/ruby/interpreter/normally/called/ruby
    Alias /ct /your/static/content/called/public
    <Location /ct>
    PassengerBaseURI /ct
    PassengerAppRoot /your/app/path
    </Location>
    <Directory /your/static/content/called/public>
    Allow from all
    Options -MultiViews
    Require all granted
    </Directory>

    Note that with <Location /ct> your URL changes from http://host/api/v2/endpoint to http://host/ct/api/v2/endpoint.

Remark

I tend to mix English and German language throughout the project. Sorry for that.