GithubHelp home page GithubHelp logo

hangman's Introduction

#Installation

Make sure your domain points to the public directory.

Copy config/autoload/local.php.dist to config/autoload/local.php and adjust/fill out the database information.

Install dependencies using composer:

php composer.phar install

Then build the database using doctrine:

php public/index.php orm:schema-tool:update --force

To create an admin user, open the application, open your-domain.whatever/user/register and register yourself as a new user. Setting the role in the hm_game to "admin" for the user you just created.

Adding words

If you want, you can add a suggested list of words using your browsers js console. This is not good practice, but it works.

  • Log in as an admin
  • Run the following commands. They simulate sending the "add word" form a ton of times.
  • This way, inputfilters are automatically applied (you can of course also add your own words to the json).
  • Make sure to leave your browser open until all requests were completed.
// replace [] with the contents of data/sample-words.json
var words = [];
// replace hangman.local with your domain
words.forEach(function(word) {
     $.post('http://hangman.local/word/add', {"word": word});
});

hangman's People

Contributors

evandotpro avatar weierophinney avatar akrabat avatar maks3w avatar ocramius avatar samsonasik avatar freeaqingme avatar binarykitten avatar dshafik avatar bittarman avatar vragovr avatar tawfekov avatar hounddog avatar sasezaki avatar kassah avatar petk avatar mhujer avatar lsmith77 avatar coss avatar xerkus avatar rwoverdijk avatar ftdebugger avatar bostjanob avatar thinkscape avatar rahuldroy avatar donhuvy avatar yonman avatar diemuzi avatar powerkiki avatar bacinsky avatar

Watchers

James Cloos avatar David S avatar

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.