Electric Boogaloo
- grunt
- bower
- node
- npm
The following configuration variables are required in env.cson
:
badgekitApiUrl
: The URL for badgekit-api. For dev, this is probably'https://badgekit-api.mofostaging.net'
badgekitApiKey
: The key for accessing badgekit-api. For dev, this is probably'master'
badgekitApiSecret
: The secret key for accessing badgekit-api. You should ask@k88hudson
or@echristensen
for thisloginUrlWithAuth
: The full-qualified login URL. Probablyhttp://testuser:password@localhost:3000
git clone https://github.com/mozilla/webmaker-profile-2.git
cd webmaker-profile-2
npm install
Clone the env.cson.example
file to env.cson
and configure your environment.
To run the project simply execute grunt
, or if you'd like live reload grunt live-server
.
To see a specific user's profile navigate to http://localhost:1969/user/USERNAME.
Returns a list of a user's badges given username
.
Returns public user metadata for given username
.
Returns JSON of public app configuration for use on client side.
- /_service/login/verify
- /_service/login/authenticate
- /_service/login/create
- /_service/login/logout
- /_service/login/check-username
grunt server
- Compile LESS, run web server on port 1969, and recompile LESS as needed.grunt live-server
- Runsgrunt server
and injects livereload to browser.grunt lint
- Beautify JS and HTML based on .jsbeautifyrc and check JS for JSHint compliance based on .jshintrc.grunt validate
- Test that JS and HTML are beautified and JS passes JSHint. Typically this task is run by Travis to verify commits are clean.grunt build
- Compiles the front-end for production.