https://github.com/abritopach/angular-wishlist-mst
Sample project that shows how to manage application state with Mobx-state-tree in Angular.
https://github.com/abritopach/angular-wishlist-mst
angular angular-material mobx mobx-angular mobx-state-tree typescript
Last synced: about 1 month ago
JSON representation
Sample project that shows how to manage application state with Mobx-state-tree in Angular.
- Host: GitHub
- URL: https://github.com/abritopach/angular-wishlist-mst
- Owner: abritopach
- Created: 2018-01-31T20:34:51.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-04-27T08:52:44.000Z (about 8 years ago)
- Last Synced: 2025-01-26T05:27:06.197Z (over 1 year ago)
- Topics: angular, angular-material, mobx, mobx-angular, mobx-state-tree, typescript
- Language: TypeScript
- Homepage:
- Size: 159 KB
- Stars: 1
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Angular-Wishlist-Mst
Sample project that shows how to manage application state with Mobx-state-tree in Angular.
This example is based on the example ["Manage Application State with Mobx-state-tree in React by Michel Weststrate"](https://egghead.io/courses/manage-application-state-with-mobx-state-tree) that I modified and adapted to Angular to practice my skills.
Technologies: Mobx-state-tree, Mobx, Mobx-angular, Angular, Typescript, Angular Material.
This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 1.6.3.
## Development server
Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files.
## Code scaffolding
Run `ng generate component component-name` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module`.
## Build
Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory. Use the `-prod` flag for a production build.
## Running unit tests
Run `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io).
## Running end-to-end tests
Run `ng e2e` to execute the end-to-end tests via [Protractor](http://www.protractortest.org/).
## Requirements
* [Node.js](http://nodejs.org/)
* [Angular cli](https://github.com/angular/angular-cli)
## Debugging MobX
To turn on / off the debug tool, open developer tools' console, and run:
``` bash
# Turn on.
mobxAngularDebug(true)
# Turn off.
mobxAngularDebug(false)
```
## License
The MIT License (MIT) Copyright (c)
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Original work Copyright (c) 2018 Adrián Brito