Name: lc1-challenge-app
Owner: Topcoder
Description: Louder Crowd Challenge App
Created: 2014-10-17 08:44:03.0
Updated: 2015-01-12 19:52:01.0
Pushed: 2015-01-12 19:52:01.0
Homepage: null
Size: 6230
Language: JavaScript
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
npm install
The env sample contains the the correct
CHALLENGE_API
and will allow you to connect to the dev db and instantlly see shared data. If should be noted that theAWS
setting andTC_AUTH
vars have dummy values so you wont be able to upload a file. You are welcome to switch to to you own aws keys or set the STORAGE_PROVIDER to local. IF you set STORAGE_PROVIDER=local you will also need to create the following directories in the root folder:upload
andtemp
however at the current state the upload (even if set to local ) is expecting an s3 response and will throw an error.
start with grunt
or node server/web.js
End-to-End testing using http://angular.github.io/protractor/#/api has been added to the app. For further documentation, please refer to docs/e2e_challenge_testing.md
.
npm run update-webdriver
to install the chromerdirver for selenium.grunt
grunt test:challengeEdit
you may need to add a buildpack for node and grunt
heroku config:set BUILDPACK_URL=https://github.com/mbuchetics/heroku-buildpack-nodejs-grunt.git
The default setting use local storage, to use S3 set the following values in your .env file or env vars
AGE_PROVIDER=s3
KEY=yourkey
SECRET=yoursecret
BUCKET=yourbuckt
REGION=youregegion(us-east-1)
Enviromential Variables (updated 12/31/2014)
| Name of variable | Default value|
|—|—|
| AUTH_ENABLED | false |
| AWS_KEY | yourkey |
| AWS_SECRET | yoursecret |
| AWS_BUCKET | yourbuckt |
| AWS_REGION | youregegion(us-east-1) |
| CHALLENGE_API | http://dev-lc1-challenge-service.herokuapp.com (if you are running the challenge app you may need to set this to localhost) |
| STORAGE_PROVIDER | S3
or local
(currently local is not working ) |
| TC_AUTH0_CLIENT | foo |
| TC_AUTH0_SECRET | bar |
| TC_PROJECT_BASE_URL | http://localhost |
| TC_WWW_URL | http://localhost |
| USER_API | http://dev-lc1-user-service.herokuapp.com |
add npm modules required for code gen
nt": "^0.4.5",
nt-swagger-js-codegen": "^0.2.11",
d-grunt-tasks": "^1.0.0",
Create Grunt file
run grunt swagger-clients
you must supply enviromential variables for both TC_AUTH0_CLIENT
and TC_AUTH0_SECRET
you can set them to any value for the time being until we have the config dir set up. If you have created the .env file you can ignore this.
grunt has been added to the app so you can now start it with
grunt
and nodemon will watch for changes in .js or .html files and restart if they change