Welcome to my project! This is an angular 2 rc4 web game where the user needs to balance an object on a see-saw using the phone's accelerometer. The phone sends POST requests to a php hosted website. The angular project then uses GET requests to get the accelerometer data from the aforementioned website
-
Download the repo
-
Install the node modules
npm install
npm start
-
Install PHP and add the files to the htdocs
-
Deploy the website and follow instructions on the instructions page
Run ng serve
for a dev server. Navigate to http://localhost:4200/
. The app will automatically reload if you change any of the source files.
Run ng generate component component-name
to generate a new component. You can also use ng generate directive/pipe/service/class
.
Run ng build
to build the project. The build artifacts will be stored in the dist/
directory. Use the -prod
flag for a production build.