Code Monkey home page Code Monkey logo

Ninjawars repository

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

Ninjawars Build Automation

Semaphore Build Status Deployment status from DeployBot

Install

Install your webserver (nginx + php8.2-fpm recommended) & configure it

sudo apt-get install php8.2-cli php8.2-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=EGkzqai
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

Local Prep to install php-cli or similar and needed php extensions:

sudo make install-system

configure, make, make install:

./configure
# edit your generated CONFIG file here
make
make db-init-all
make db-fixtures
make check

Get the database working, then make install

sudo make install

To 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.

Deployment Process

Ninjwars is deployed helpfully via Deploybot https://ninjawars.deploybot.com/ Triggered by pull request merges.

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

NinjaWars's Projects

blueprint-css icon blueprint-css

A CSS framework that aims to cut down on your CSS development time

imgur icon imgur

Upload images to imgur via JavaScript

mention.js icon mention.js

Lightweight wrapper for adding @user mention functionality to Twitter Bootstraps Typeahead plugin

ninjawars icon ninjawars

[MIRROR] Fork of the main source code for the ninjawars.net webgame.

nw-r icon nw-r

Front-end React Shell for the ninjawars site

nw-shuriken icon nw-shuriken

A collection of react components for building the http://ninjawars.net webgame.

nw-splash icon nw-splash

The static splash page for the ninjawars site.

sdmud icon sdmud

Server for a text-based hack’n’slash MUD with a fantasy theme

smart_resize_image icon smart_resize_image

PHP function for image resizing that does what you think it should, the right way.

stickychat icon stickychat

Mirror of the player created StickyChat source code

ws-chat icon ws-chat

Websockets chat infrastructure and documentation for a realtime chat backend for the ninjawars web app

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.