The code repository where ninjas are prototyped for the ninja game @ ninjawars.net
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin Chat: Fully working chat application, with call and response to the … Jun 19, 2015
config Add folder for config to start filling it. Jul 21, 2018
deploy Add padding to solo-page h1. Oct 30, 2018
docs Remove propel. Jul 21, 2018
scripts Remove propel. Jul 21, 2018
.codeclimate.yml Correct codeclimate config Feb 12, 2016
.csslintrc Add codeclimate configuration files Feb 7, 2016
.eslintignore Improve eslinting. May 4, 2018
.eslintrc.json Add eslint package dep. Mar 7, 2018
.gitignore Fix unused var in Status class. Jul 25, 2018
.gitmodules Remove vendor javascript from source control Jan 4, 2016
.jshintrc Jshintrc: Commit previously untracked jshintrc. Dec 29, 2017
.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
Dockerfile Created a Dockerfile. Mar 24, 2018
Makefile Update Makefile make command Sep 1, 2018
README.markdown Remove propel. Jul 21, 2018
composer.json Sync jquery version to site version, Aug 18, 2018
composer.lock Sync jquery version to site version, Aug 18, 2018
composer.phar Upgrade composer.phar. Aug 11, 2018
configure Have ./configure script default to https://nw.local. Oct 15, 2018
package-lock.json Remove npm check updates as a direct dep, Oct 15, 2018
package.json Remove npm check updates as a direct dep, Oct 15, 2018
phpmd.xml Update static analysis config Feb 12, 2016
phpunit.xml Make test-quick: Added high priority core controller tests, Apr 27, 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
yarn.lock Update package.json deps. Sep 1, 2018

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 + php7-fpm recommended) & configure it

sudo apt-get install php7-cli php7-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

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.

Run the Docker

  • Init tagged image: docker build -t nw-server .
  • Run it: docker run --rm -it -p 7654:7654 nw-server
  • Stop the container: docker stop nw-server

To Contribute

See CONTRIBUTING.md