Skip to content
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4,485 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

The code repository where ninjas are prototyped for the ninja game @ ninjawars.net

Resources

Contributing

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages