an implementation of the Evilopoly rules using Slim, Angular and Bootstrap
This should work for both mac and windows... so no complaining. This presumes that you have git installed on your manchine and that you have pulled down the repo.
the front end dev tools use nodejs, much in the same way that the back end stuff uses composer. There is no node in the actual app, it's just there to run tasks and install dependencies. You can get download Nodejs here.
once installed, you will be able to access NPM (Node Package Manger) from your terminal/command line.
Install the Grunt CLI by running npm install -g grunt-cli
Now that you have NPM installed, navigate to your repo in the command line then run the command npm install
. This will create a folder called node_modules that contain all of your dev tools.
Install bower by running npm intall bower
.
Once bower is installed run bower install
to install the front end dependencies.
The app uses concatenated javascript and compiled CSS. This allows us to separate the javascript, css and html templates into sensible components. The dev tools concatenate all of js files in /main and compiles the less files in /main into css. The resulting files are put in the dist folder for use in the app. The app will only used these compiled files, so any changes made to these files must be compiled.
running grunt
from the commnad line will compile all of the less and concatenate all of the js in the app.
running grunt concat
will just concatenate all of the js files in /main into /dist/app.js
running grunt less
will just concatenate all of the less files in /main into /dist/app.css
running grunt watch
will set grunt to automatically compile the files as soon as you save a change in them. good for rapid development.
header: header "stuff"
with the pattern username:password.
returns: authtoken
header none required.
post body json {"email_address":string,"password":string,"username":string}
returns void
header: header "x-auth-token"
with authorization token.
returns: json player list
header: header "x-auth-token"
with authorization token.
params: name
(string) name to be returned
returns: json with {"name":}
{"username":"username",token":"base64 encoded string"}