Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/willmendesneto/angular-snake
https://github.com/willmendesneto/angular-snake
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/willmendesneto/angular-snake
- Owner: willmendesneto
- License: mit
- Created: 2015-06-15T00:49:12.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-09-07T18:40:12.000Z (over 9 years ago)
- Last Synced: 2023-03-23T03:36:53.064Z (almost 2 years ago)
- Language: JavaScript
- Size: 4.69 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Angular Snake
> Vintage Snake game built with angular
Example: http://willmendesneto.github.io/angular-snake
## How to Use
1 - Clone this repository and access the generated folder
```bash
$ git clone [email protected]:willmendesneto/angular-snake.git [project-name]
$ cd [project-name]
```2 - Run the commands for download application dependencies
```bash
$ npm install #install node dependencies
$ bower install #install bower dependencies
```OBS: To verify if all modules that this app has dependency are installed. The list of all them are in package.json file.
3 - Run grunt serve command for run local server command
It's necessary run `npm install -g grunt-cli`. This provide the command grunt.
```bash
$ grunt serve
```After this, access http://localhost:3000 for use this app
4 - Run application tests
```bash
$ grunt test # runn karma tests
$ grunt watch:jsTest # watch tests and scripts folder and run karma tests if these files will be modified
```5 - Run application E2E tests
In you first terminal tab run the command```bash
$ ./node_modules/protractor/bin/webdriver-manager start # start webdriver
```Now, open a new terminal tab and run the command
```bash
$ ./node_modules/protractor/bin/protractor protractor_conf.js # runn protractor tests
```6 - Build application
```bash
$ grunt
```7 - Run server based in dist folder
```bash
$ grunt serve:dist
```## 3rd party dependencies ##
This project use (actually globally):
### NodeJS
- ```karma``` like test runner;
- ```protractor``` for e2e tests;
- ```grunt-cli``` for run grunt commands in CLI;
- ```bower``` like package manager for the web;
- ```jshint``` for lint script files;### Frontend
All list of frontend dependencies are in ```bower.json``` file.
### Backend
All list of backend dependencies are in ```package.json``` file.