Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
0bbd968
this time with webpack! #crowdGoesWild
Jan 17, 2016
5ff2b68
tslinting it up
Jan 17, 2016
16fb722
make immutable and stuff
robwormald Jan 17, 2016
38461ee
Merge pull request #2 from robwormald/fixes2
Jan 17, 2016
846a417
tightening - avoiding record mutations
Jan 17, 2016
c7fde0c
round 1000
Jan 17, 2016
91f2123
getting closer!
Jan 17, 2016
bb255ea
tightening up some stuff
Jan 17, 2016
832899f
updating readme
Jan 17, 2016
40418d0
Update README.md
Jan 25, 2016
18cdb8e
cleanup
jdgarvey Jan 25, 2016
3fa8ecd
readme cleanup
jdgarvey Jan 25, 2016
e6e26b9
first pass at testing
jdgarvey Jan 25, 2016
8ae2b7c
test cleanup
jdgarvey Jan 25, 2016
96b1886
Update README.md
Jan 26, 2016
20c553b
move tests next to the tested code
jdgarvey Jan 27, 2016
2043522
re-include a jasmine patch
jdgarvey Jan 27, 2016
da72bf1
fix: Update package.json to avoid breaking changes
wolfhoundjesse Feb 3, 2016
23871af
fix: selected item doesn't reset when item deleted
jdgarvey Feb 8, 2016
9e1ed8c
add: comments in App.saveItem and App.deleteItem
jdgarvey Feb 8, 2016
bc0a83b
Merge pull request #3 from wolfhoundjesse/patch-1
Feb 10, 2016
f70c640
(chore) updating to tslint to use new trailing-comma rule
Mar 8, 2016
bb2c657
updating to latest beta
Mar 14, 2016
7956a6c
major refactor
Mar 18, 2016
34f34b2
¯\_(ツ)_/¯
Mar 18, 2016
880b27f
fixing this template
Mar 18, 2016
865dfb1
chore
Hendrixer Mar 18, 2016
fee8176
fixing everything!
Mar 18, 2016
5f48c52
add(devtools)
Hendrixer Mar 18, 2016
b220366
add(types)
Hendrixer Mar 18, 2016
6f17f4e
fix()
Hendrixer Mar 18, 2016
392e753
solutions!
Mar 18, 2016
2259f56
add(immutable)
Hendrixer Mar 18, 2016
3162898
solutions!
Mar 18, 2016
9ed75e2
Merge branch 'master' of github.com:onehungrymind/fem-ng2-ngrx-app
Mar 18, 2016
9417f27
updating to angular 2 rc1
jdgarvey May 9, 2016
ed6e22d
fix routing
jdgarvey May 9, 2016
b52ab47
update typings format + lock in angular versions
jdgarvey Jun 20, 2016
5b866a1
lock all dependency versions
jdgarvey Jul 7, 2016
781a6d6
upgrading to RC5
jdgarvey Aug 31, 2016
0c2febb
update tests for RC5
jdgarvey Aug 31, 2016
5d00fd0
lock major package versions
jdgarvey Sep 8, 2016
924d44c
fix typings errors
jdgarvey Sep 27, 2017
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# @AngularClass
# http://editorconfig.org

root = true

[*]
charset = utf-8
indent_style = space
indent_size = 2
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true

[*.md]
insert_final_newline = false
trim_trailing_whitespace = false

[*.json]
insert_final_newline = false
trim_trailing_whitespace = false
10 changes: 8 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
.DS_Store
node_modules
client/**/*.js
client/**/*.map

typings
node_modules
jspm_packages
bower_components

.idea/
.DS_Store
20 changes: 14 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,24 @@
## Reactive RESTful Angular 2 application with ngrx store
# Reactive RESTful Angular 2 application with ngrx store

A RESTful master-detail application built using Angular 2 and [ngrx store](https://github.com/ngrx/store).

### Getting Started
## Dependencies
- You must have `node v >= 4.0` and `npm` installed (via `brew install node` or [NodeJS.org](https://nodejs.org/en/));
- `npm i -g typings webpack-dev-server webpack rimraf json-server`
- If you have already installed `typings`, make sure to update it to `1.x`

There are two main parts to this application. The first is the server which we are using `json-server` to simulate a REST api. The second part is the Angular 2 application which we will use `lite-server` to display.
## Getting Started

To get started run the commands below.
There are two main parts to this application. The first is the server which we are using `json-server` to simulate a REST api. The second part is the Angular 2 application which we will use `webpack-dev-server` to display.

To get started, run the commands below.

```
$ git clone https://github.com/simpulton/ngrx-rest-app.git
$ cd nxrx-rest-app
$ git clone https://github.com/onehungrymind/fem-ng2-ngrx-app.git
$ cd fem-ng2-ngrx-app
$ npm install
$ typings install
$ npm start
```

Then navigate to [http://localhost:3001](http://localhost:3001) in your browser.
130 changes: 0 additions & 130 deletions client/app/app.ts

This file was deleted.

13 changes: 0 additions & 13 deletions client/app/boot.ts

This file was deleted.

96 changes: 0 additions & 96 deletions client/app/items.ts

This file was deleted.

44 changes: 44 additions & 0 deletions client/boot.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
import 'core-js';
import 'zone.js/dist/zone';
import {StoreModule} from '@ngrx/store';
import {StoreDevtoolsModule} from '@ngrx/store-devtools';
import {StoreLogMonitorModule, useLogMonitor} from '@ngrx/store-log-monitor';
import {items} from './src/common/stores/items.store';
import {selectedItem} from './src/common/stores/selectedItem.store';
import {selectedWidget} from './src/common/stores/selectedWidget.store';

import {NgModule} from '@angular/core';
import {BrowserModule} from '@angular/platform-browser';
import {platformBrowserDynamic} from '@angular/platform-browser-dynamic';
import {RouterModule} from '@angular/router';
import {ReactiveFormsModule, FormsModule} from '@angular/forms';
import {HttpModule} from '@angular/http';
import {App} from './src/app';
import {Items} from './src/items/items.component';
import {Widgets} from './src/widgets/widgets.component';
import {GadgetService} from "./src/common/services/gadget.service.ts";
import {routes} from './routes';

@NgModule({
imports: [
BrowserModule,
HttpModule,
ReactiveFormsModule,
FormsModule,
RouterModule.forRoot(routes),
StoreModule.provideStore({items, selectedItem, selectedWidget}),
StoreDevtoolsModule.instrumentStore({
monitor: useLogMonitor({
visible: false,
position: 'right'
})
}),
StoreLogMonitorModule
],
declarations: [App, Items, Widgets],
providers: [GadgetService],
bootstrap: [App]
})
export class AppModule {}

platformBrowserDynamic().bootstrapModule(AppModule);
20 changes: 0 additions & 20 deletions client/config.js

This file was deleted.

Loading