Skip to content

Commit

Permalink
Expand README
Browse files Browse the repository at this point in the history
Rename social signin and signup calls
  • Loading branch information
kornatzky committed Nov 15, 2016
1 parent cc4efc2 commit 16bc57d
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 2 deletions.
47 changes: 47 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,51 @@ Then install dependendencies with:

Uses `angular2bknd-sdk`. See [angular2bknd-sdk](https://github.com/backand/angular2bknd-sdk) about required dependencies.

# App Structure

The app structure is the standard Angular JS 2 structure. The app code is the `src` folder. The app starts `AppModule` from `app.modulet.ts`, and does a bootstrap of `AppComponent` from `app.componenet.ts`. The app uses a Router, and constructs the routes in `app-routing.modules.ts`.

AppComponent shows a navigation bar, and using `router-outlet` switches views.

Layout of app is done using SASS.

Using angular-cli, we generate screens with:

ng generate component my-new-component

Each screen forms a folder under `src` with four files:

* `ts` - typescript component
* `html` - html template
* `scss` - SASS for styling of template
* `spec.ts` - tests

## Components

### Login

Sign in to Backand using username and password, or with anonymous token.

## Sign Up

1. Sign up to Backand
2. Sign up using Facebook/Twitter/Google/GitHub

### CRUD

CRUD operation on your model in Backand

Including:

Get items
Post items
Filter items

### Files

Upload files to Backand storage





4 changes: 2 additions & 2 deletions src/app/signup/signup.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export class SignupComponent implements OnInit {
}

public socialSignin(provider) {
var $obs = this.backandService.socialAuth(provider, false);
var $obs = this.backandService.socialSignin(provider);
$obs.subscribe(
data => {
console.log('Sign up succeeded with:' + provider);
Expand All @@ -55,7 +55,7 @@ export class SignupComponent implements OnInit {
}

public socialSignup(provider) {
var $obs = this.backandService.socialAuth(provider, true);
var $obs = this.backandService.socialSignup(provider);
$obs.subscribe(
data => {
console.log('Sign up succeeded with:' + provider);
Expand Down

0 comments on commit 16bc57d

Please sign in to comment.