ember-app-kit-simple-auth
ember-app-kit-simple-auth copied to clipboard
Working example of ember-app-kit using ember-simple-auth for OAuth2 authentication.
ember-app-kit-simple-auth
Working example of ember-app-kit using ember-simple-auth for OAuth2 authentication.
Backend example for Django available at django-rest-framework-oauth2-provider-example.
Requirements
- You should have node.js installed. Setup on Ubuntu 12.04
- Make sure your SSH keys are set up properly for GitHub.
Install
Clone this repo
git clone [email protected]:erkarl/ember-app-kit-simple-auth.git
cd ember-app-kit-simple-auth
Install the Grunt command-line tool globally (you might have to use sudo depending how you installed node.js)
npm install -g grunt-cli
Install the dependencies Grunt relies on to build
npm install
Install Bower, a package manager that keeps your front-end dependencies (including JQuery, Ember, and QUnit) up to date. You might have to use sudo depending how you installed node.js.
npm install -g bower
bower install
Fire up the development server
grunt server
Builds your application (in debug mode) and serves it. This task also will watch your application for changes, and will rebuild any time you change a file.
Launch http://localhost:8000 in your browser.
If you're using django-rest-framework-oauth2-provider-example as
a backend the default username is ar
and password ar
.
...otherwise you can configure your client_id an client_secret in ../app/controllers/login.js
and setup your server's token endpoint in ../app/app.js
Run tests
grunt
Builds your application (in debug mode) and runs its tests.
Build for production
grunt build:dist
Builds your application once in dist mode. This means your assets will be minified and version-stamped. This task also builds to the dist/ folder, which can be deployed to a static server in production.