Skip to content
This repository has been archived by the owner on May 19, 2020. It is now read-only.

Commit

Permalink
Merge dbb2214 into e3864b4
Browse files Browse the repository at this point in the history
  • Loading branch information
RAMIREZG committed Aug 10, 2015
2 parents e3864b4 + dbb2214 commit 0f08d79
Show file tree
Hide file tree
Showing 324 changed files with 42 additions and 177,323 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,7 @@
*.swo
*.cov
.env
static/bower_components/
node_modules/
coverage
.godeps/
13 changes: 3 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,33 +34,26 @@ If you are testing locally, export these variables. If you are deploying to clou
- `CONSOLE_API`: The URL of the API service. i.e. `http://api.domain.com`

## Front end
Front end dependencies included
Install front end dependencies
```
cd static
bower update
npm install
```

## Running locally
- Modify the ClientID and ClientSecret in main() to reflect your client id and secret. TODO: Use environment variables.
- Modify the AuthURL and TokenURL in main() to reflect the URLs to login and get tokens. TODO: Use environment variables.
- `go run server.go`
- Navigate browser to `http://localhost:9999`


## Unit Testing
### Running Go unit tests
- `go test ./...`

### Running Angular unit tests
To install AngularJS test dependencies
```
npm install
```
Test can then be run with the command:
```
npm run tests
```
To get a viewable coverage report change the `coverageReport` object in `karma.conf.js` from `json` to `html`
To get a viewable coverage report change the `coverageReport` object in `karma.conf.js` from `json` to `html`
```
coverageReporter: {
type: 'html',
Expand Down
46 changes: 24 additions & 22 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,24 +1,26 @@
{
"name": "tests",
"version": "1.0.0",
"description": "test suite",
"main": "null",
"scripts": {
"codecov": "cat ./coverage/coverage-final.json | ./node_modules/codecov.io/bin/codecov.io.js",
"tests": "./node_modules/.bin/karma start karma.conf.js --single-run",
"test": "npm run tests && npm run codecov"
},
"author": "",
"license": "ISC",
"dependencies": {
"codecov.io": "^0.1.5",
"istanbul": "^0.3.5",
"jasmine": "^2.1.1",
"jasmine-core": "^2.1.3",
"jasmine-node": "^1.14.5",
"karma": "^0.12.31",
"karma-coverage": "^0.2.7",
"karma-jasmine": "^0.3.5",
"karma-phantomjs-launcher": "^0.1.4"
}
"name": "tests",
"version": "1.0.0",
"description": "test suite",
"main": "null",
"scripts": {
"codecov": "cat ./coverage/coverage-final.json | ./node_modules/codecov.io/bin/codecov.io.js",
"postinstall" : "cd static && ../node_modules/bower/bin/bower install",
"tests": "./node_modules/.bin/karma start karma.conf.js --single-run",
"test": "npm run tests && npm run codecov"
},
"author": "",
"license": "ISC",
"dependencies": {
"bower": "^1.4.1",
"codecov.io": "^0.1.5",
"istanbul": "^0.3.5",
"jasmine": "^2.1.1",
"jasmine-core": "^2.1.3",
"jasmine-node": "^1.14.5",
"karma": "^0.12.31",
"karma-coverage": "^0.2.7",
"karma-jasmine": "^0.3.5",
"karma-phantomjs-launcher": "^0.1.4"
}
}
14 changes: 11 additions & 3 deletions static/bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
{
"name": "cf-deck",
"name": "cfdeck",
"version": "0.0.0",
"authors": [
"jamesc.scott@gsa.gov",
"gabriel.ramirez@gsa.gov",
"diego.lapiduz@gsa.gov"
],
"description": "Cloudfoundry UI",
"license": "MIT",
"ignore": [
"**/.*",
"node_modules",
Expand All @@ -9,9 +16,10 @@
"tests"
],
"dependencies": {
"angular-ladda": "~0.3.1",
"angular-route": "~1.4.3",
"angular-mocks": "~1.4.3",
"bootstrap": "~3.3.5",
"angularjs": "~1.4.3",
"angular-route": "~1.4.3"
"bootstrap": "~3.3.5"
}
}
45 changes: 0 additions & 45 deletions static/bower_components/angular-ladda/.bower.json

This file was deleted.

51 changes: 0 additions & 51 deletions static/bower_components/angular-ladda/CHANGELOG.md

This file was deleted.

22 changes: 0 additions & 22 deletions static/bower_components/angular-ladda/LICENSE

This file was deleted.

0 comments on commit 0f08d79

Please sign in to comment.