Citizentools is an API to access information about players and their organisations in the Star Citizen MMO.
The API documentation has been created with the sublime Slate. It's here.
(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.)
-
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.
I tend to mix English and German language throughout the project. Sorry for that.