The code repository where ninjas are prototyped for the ninja game @ ninjawars.net
PHP Smarty CSS JavaScript SQLPL Python Other
Permalink
Failed to load latest commit information.
bin Chat: Fully working chat application, with call and response to the … Jun 19, 2015
deploy Public page: Minor css cleanup. Jul 24, 2017
docs DNS: Dump archive of dns AXFR Mar 21, 2016
scripts configure: Reconfigured to better handle initial installs. Apr 15, 2016
.codeclimate.yml Correct codeclimate config Feb 12, 2016
.csslintrc Add codeclimate configuration files Feb 7, 2016
.eslintignore Add codeclimate configuration files Feb 7, 2016
.eslintrc Add codeclimate configuration files Feb 7, 2016
.gitignore Initial ugly transplant of twbs example Aug 27, 2016
.gitmodules Remove vendor javascript from source control Jan 4, 2016
.travis.yml Travis: Cleanup of .travis.yml Apr 15, 2016
CONTRIBUTING.md Docs: Add note about coding standards doc to contributing.md Feb 11, 2016
Makefile Makefile: Fix python install command, Jul 17, 2017
README.markdown README.markdown Feb 28, 2017
build.properties.tpl Make db: Try to stop using postgres user. Feb 10, 2016
buildtime.xml.tpl Make db: Try to stop using postgres user. Feb 10, 2016
composer.json Composer: Reduce version leniency in composer, Apr 24, 2017
composer.lock Composer: Reduce version leniency in composer, Apr 24, 2017
configure Configure: Fix break in ./configure. May 9, 2016
connection.xml.tpl Make db: Try to stop using postgres user. Feb 10, 2016
package.json Karma: Getting set up, WIP. Mar 20, 2016
phpmd.xml Update static analysis config Feb 12, 2016
phpunit.xml Make test-quick: Added high priority core controller tests, Apr 27, 2016
schema.xml Schema: Drop long-since-deprecated pname_backup column. Apr 11, 2016
test-main.js Karma & Jasmine: Added with initial js Spec. Mar 20, 2016
vendor Vendor: Moved vendor folder to deploy/vendor . Jun 4, 2014

README.markdown

Ninjawars repository

The source code dojo for the Ninja Game @ http://ninjawars.net .

Codeship Continuous Integration build

Codeship Status for BitLucid/ninjawars

Install

Install your webserver (nginx + php5-fpm recommended) & configure it

sudo apt-get install php5-cli php5-fpm nginx

On your database server, install postgresql & configure it

sudo apt-get install postgresql postgresql-contrib

Set up the environment variables, get the github token from here: https://github.com/settings/tokens

export GITHUB_ACCESS_TOKEN=
export DBUSER=
sed "0,/postgres/{s/postgres/${DBUSER}/}" deploy/resources.build.php > deploy/resources.php
sed "s|/srv/ninjawars/|../..|g" deploy/tests/karma.conf.js > karma.conf.js

configure, make, make install:

./configure
make
sudo make install

Sync up to the latest db changes:

cd /srv/ninjawars
sudo bash ./scripts/build/integration.sh

Check the differences between your database and the latest schema:

vendor/bin/propel-gen diff

Sync the database to make your version get updated with the latest table:

cd /srv/ninjawars
./scripts/sync

Start up the chat server with this:

sudo make start-chat

Then you can run the tests to check your progress with:

make test

See ./docs/INSTALL if you need more.

To Contribute

See CONTRIBUTING.md