#Children of Ur Auth Server#
##What is this?## This repository contains the source code for Children of Ur's Dart-based login and authentication server. The project is currently hosted at childrenofur.com.
Children of Ur is based on Tiny Speck's browser-based game, Glitch™. The original game's elements have been released into the public domain. For more information on the original game and its licensing information, visit glitchthegame.com.
This was split off from the main CoU server for reasons of stability and separation of tasks.
##Getting Started##
- Download the Dart Editor
- In the Dart Editor, go to File -> "Open Existing Folder" and open this project folder
- Make sure you have the required dependencies specified in pubspec.yaml. If you're missing any of these, try selecting a file in the project, and then running Tools > Pub Get.
##Running##
- To run the server, you will have to create an 'API_KEYS.dart' file in the top-level
folder. Directions can be found in the developer docs
here.
You will need to change the line at the top of the file from
part of couServer;
topart of authServer;
. - After that, right-click on the
bin/authserver.dart
file and select Run to start the server on your local machine. - If you do not have a signed cert and cert password, you will have to supply the option
--no-load-cert
on the command line or in the Dart Editor run configuration. - Go to
http://localhost:8383/serverStatus
to test that your server is returning data. Seeserver.dart
for other routes.
##Testing##
- To run the tests, you can either type
dart test/all_tests.dart
from the command line, or right-click ontest/all_tests.dart
and select 'Run' in the Dart Editor.