Skip to content

Commit 1da8db6

Browse files
author
James Chambers
committedDec 2, 2013
Initial commit
0 parents  commit 1da8db6

File tree

1,048 files changed

+101748
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,048 files changed

+101748
-0
lines changed
 

‎.gitignore

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.DS_Store
2+
.sass-cache/**/*
3+
node_modules/**/*
4+
dev/_database/**/*

‎README.md

+61
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
![Robo-Boogie](http://roboboogie.codeclub.org.uk/assets/img/logo%401x.png)
2+
3+
Robo-boogie is a web-based robot dancing game made for [Code Club](http://www.codeclub.org.uk) by [Hover Studio](http://hoverstud.io).
4+
5+
You can check the app out online at [roboboogie.codeclub.org.uk](http://roboboogie.codeclub.org.uk)
6+
7+
We learned a lot building the app so we've put the code up here in the hopes it might interesting/helpful to somebody!
8+
9+
## Getting up and running
10+
11+
1. Node and NPM installed (a good guide is available [on Shape Shed](http://shapeshed.com/setting-up-nodejs-and-npm-on-mac-osx/))
12+
2. A PHP/MySQL server to run the API
13+
14+
The app is divided into two parts: A frontend Backbone JS app and a Codeigniter PHP API for saving the dances.
15+
16+
### Frontend
17+
18+
The front end relies on grunt, both to run the development server and the build task. To install the necessary packages run
19+
20+
npm install
21+
22+
…from the root folder.
23+
24+
The `dev` folder contains the projects files and API files. To run the front end of the app, start the express server using:
25+
26+
grunt server
27+
28+
The app should now be available at `http://0.0.0.0:8000/` in your web browser.
29+
30+
The dev folder can then be complied and minified into to the `/build/` folder using the grunt task:
31+
32+
grunt build
33+
34+
Details of what happens during this task can be found in `Gruntfile.js`.
35+
36+
### Backend API
37+
38+
Firstly you'll need to set up a local testing domain (e.g. http://codeclub.dev) and point it to `/dev/api/`. We use [VirtualhostX](https://clickontyler.com/virtualhostx/) for this kind of thing and can heartily recommend it.
39+
40+
The MySQL database schema is in `schema.sql` in the project root. You should run this in your favourite MySQL GUI (we use [Sequel Pro](http://www.sequelpro.com/) and then update your database connection settings in:
41+
42+
/dev/api/application/config/database.php
43+
44+
Also you'll need to ensure your API url is correctly entered in:
45+
46+
/dev/assets/js/config/urlConfig.js
47+
48+
49+
## Thanks
50+
51+
- Clare Sutcliffe, for asking us to do this!
52+
- Timothy Winchester, for his illustrated Robots
53+
- Tef Thomas, for help getting the thing up and running
54+
- Calum Gunn, for helping us integrate the iFrame dances
55+
- Guy Kogus, for advice on hard maths
56+
- Tom Judd, for animation advice and tips
57+
58+
Also you should check out the accompanying promo animation by our sister company [Animade](http://animade.tv) over on [Code Club's Youtube Channel](http://www.youtube.com/watch?v=sGtaIJTPbWU).
59+
60+
61+

0 commit comments

Comments
 (0)
Please sign in to comment.