This repository has been archived by the owner. It is now read-only.
Example todo app built with Angular2+Redux upon sensenet ECM
Switch branches/tags
greenkeeper/@angular/cdk-6.0.1 greenkeeper/@angular/cdk-6.0.2 greenkeeper/@angular/cdk-6.1.0 greenkeeper/@angular/cli-6.0.0-beta.5 greenkeeper/@angular/cli-6.0.0-rc.3 greenkeeper/@angular/cli-6.0.0-rc.4 greenkeeper/@angular/cli-6.0.2 greenkeeper/@angular/cli-6.0.3 greenkeeper/@angular/cli-6.0.4 greenkeeper/@angular/cli-6.0.5 greenkeeper/@angular/cli-7.0.7 greenkeeper/@angular/cli-7.1.0 greenkeeper/@angular/cli-7.1.1 greenkeeper/@angular/cli-7.1.2 greenkeeper/@angular/material-6.0.1 greenkeeper/@angular/material-6.0.2 greenkeeper/@angular/material-6.1.0 greenkeeper/@angular/router-6.0.0 greenkeeper/@angular/router-6.0.2 greenkeeper/@angular/router-6.0.3 greenkeeper/commitizen-2.10.0 greenkeeper/commitizen-2.10.1 greenkeeper/commitizen-3.0.0 greenkeeper/commitizen-3.0.1 greenkeeper/commitizen-3.0.2 greenkeeper/commitizen-3.0.3 greenkeeper/commitizen-3.0.4 greenkeeper/commitizen-3.0.5 greenkeeper/core-js-2.6.0 greenkeeper/core-js-pin-2.5.7 greenkeeper/jasmine-core-3.0.0 greenkeeper/jasmine-core-3.1.0 greenkeeper/jasmine-core-3.2.0 greenkeeper/jasmine-core-3.2.1 greenkeeper/jasmine-core-3.3.0 greenkeeper/karma-3.0.0 greenkeeper/karma-3.1.0 greenkeeper/karma-3.1.1 greenkeeper/karma-3.1.2 greenkeeper/karma-3.1.3 greenkeeper/karma-cli-2.0.0 greenkeeper/karma-jasmine-1.1.1 greenkeeper/karma-jasmine-2.0.0 greenkeeper/karma-jasmine-2.0.1 greenkeeper/karma-jasmine-pin-1.1.0 greenkeeper/monorepo.angular2-6.2.0 greenkeeper/monorepo.angular2-6.2.1 greenkeeper/monorepo.angular2-6.3.0 greenkeeper/monorepo.angular2-6.3.1 greenkeeper/monorepo.angular2-6.3.2 greenkeeper/monorepo.angular2-6.3.3 greenkeeper/monorepo.angular2-6.4.0 greenkeeper/monorepo.angular2-6.4.1 greenkeeper/monorepo.angular2-6.4.2 greenkeeper/monorepo.angular2-6.4.3 greenkeeper/monorepo.angular2-6.4.4 greenkeeper/monorepo.angular2-6.4.5 greenkeeper/monorepo.angular2-6.4.6 greenkeeper/monorepo.angular2-6.4.7 greenkeeper/monorepo.angular2-7.0.0 greenkeeper/monorepo.angular2-7.0.1 greenkeeper/monorepo.angular2-7.0.2 greenkeeper/monorepo.angular2-7.0.3 greenkeeper/monorepo.angular2-7.0.4 greenkeeper/monorepo.angular2-7.1.0 greenkeeper/monorepo.angular2-7.1.1 greenkeeper/semantic-release-15.0.0 greenkeeper/semantic-release-15.0.1 greenkeeper/semantic-release-15.0.2 greenkeeper/semantic-release-15.0.3 greenkeeper/semantic-release-15.1.2 greenkeeper/semantic-release-15.1.3 greenkeeper/semantic-release-15.1.4 greenkeeper/semantic-release-15.1.5 greenkeeper/semantic-release-15.1.6 greenkeeper/semantic-release-15.1.7 greenkeeper/semantic-release-15.1.8 greenkeeper/semantic-release-15.1.11 greenkeeper/semantic-release-15.3.0 greenkeeper/semantic-release-15.4.1 greenkeeper/semantic-release-15.4.2 greenkeeper/semantic-release-15.4.3 greenkeeper/semantic-release-15.4.4 greenkeeper/semantic-release-15.5.0 greenkeeper/semantic-release-15.5.1 greenkeeper/semantic-release-15.5.2 greenkeeper/semantic-release-15.5.3 greenkeeper/semantic-release-15.5.4 greenkeeper/semantic-release-15.5.5 greenkeeper/semantic-release-15.6.0 greenkeeper/semantic-release-15.6.1 greenkeeper/semantic-release-15.6.2 greenkeeper/semantic-release-15.6.3 greenkeeper/semantic-release-15.7.0 greenkeeper/semantic-release-15.7.1 greenkeeper/semantic-release-15.7.2 greenkeeper/semantic-release-15.8.0 greenkeeper/semantic-release-15.8.1 greenkeeper/semantic-release-15.9.1 greenkeeper/semantic-release-15.9.2 greenkeeper/semantic-release-15.9.3 greenkeeper/semantic-release-15.9.5 greenkeeper/semantic-release-15.9.6 greenkeeper/semantic-release-15.9.7 greenkeeper/semantic-release-15.9.8 greenkeeper/semantic-release-15.9.9 greenkeeper/semantic-release-15.9.11 greenkeeper/semantic-release-15.9.12 greenkeeper/semantic-release-15.9.13 greenkeeper/semantic-release-15.9.14 greenkeeper/semantic-release-15.9.15 greenkeeper/semantic-release-15.9.16 greenkeeper/semantic-release-15.9.17 greenkeeper/semantic-release-15.10.3 greenkeeper/semantic-release-15.10.4 greenkeeper/semantic-release-15.10.5 greenkeeper/semantic-release-15.10.6 greenkeeper/semantic-release-15.10.7 greenkeeper/semantic-release-15.10.8 greenkeeper/semantic-release-15.11.0 greenkeeper/semantic-release-15.12.0 greenkeeper/semantic-release-15.12.1 greenkeeper/semantic-release-15.12.2 greenkeeper/semantic-release-15.12.3 greenkeeper/semantic-release-15.12.4 greenkeeper/ts-node-6.0.0 greenkeeper/ts-node-6.0.1 greenkeeper/ts-node-6.0.2 greenkeeper/ts-node-6.0.3 greenkeeper/ts-node-6.0.4 greenkeeper/ts-node-6.0.5 greenkeeper/ts-node-6.1.0 greenkeeper/ts-node-6.1.1 greenkeeper/ts-node-6.1.2 greenkeeper/ts-node-6.2.0 greenkeeper/ts-node-7.0.0 greenkeeper/ts-node-7.0.1 greenkeeper/@types/hammerjs-2.0.36 greenkeeper/@types/jasmine-2.8.9 greenkeeper/@types/jasmine-2.8.10 greenkeeper/@types/jasmine-2.8.11 greenkeeper/@types/jasmine-3.0.0 greenkeeper/@types/jasmine-3.3.0 greenkeeper/@types/jasmine-3.3.1 greenkeeper/@types/jasmine-pin-2.8.8 greenkeeper/@types/node-10.0.3 greenkeeper/@types/node-10.0.7 greenkeeper/@types/node-10.0.9 greenkeeper/@types/node-10.0.10 greenkeeper/@types/node-10.1.0 greenkeeper/@types/node-10.1.1 greenkeeper/@types/node-10.1.2 greenkeeper/@types/node-10.1.3 greenkeeper/@types/node-10.1.4 greenkeeper/@types/node-10.3.0 greenkeeper/@types/node-10.3.1 greenkeeper/@types/node-10.3.2 greenkeeper/@types/node-10.3.3 greenkeeper/@types/node-10.3.4 greenkeeper/@types/node-10.3.5 greenkeeper/@types/node-10.3.6 greenkeeper/@types/node-10.5.0 greenkeeper/@types/node-10.5.1 greenkeeper/@types/node-10.5.2 greenkeeper/@types/node-10.5.3 greenkeeper/@types/node-10.5.4 greenkeeper/@types/node-10.5.5 greenkeeper/@types/node-10.5.6 greenkeeper/@types/node-10.5.7 greenkeeper/@types/node-10.5.8 greenkeeper/@types/node-10.7.0 greenkeeper/@types/node-10.7.1 greenkeeper/@types/node-10.7.2 greenkeeper/@types/node-10.9.0 greenkeeper/@types/node-10.9.1 greenkeeper/@types/node-10.9.2 greenkeeper/@types/node-10.9.3 greenkeeper/@types/node-10.9.4 greenkeeper/@types/node-10.10.0 greenkeeper/@types/node-10.10.1 greenkeeper/@types/node-10.10.2 greenkeeper/@types/node-10.10.3 greenkeeper/@types/node-10.11.0 greenkeeper/@types/node-10.11.1 greenkeeper/@types/node-10.11.2 greenkeeper/@types/node-10.11.3 greenkeeper/@types/node-10.11.4 greenkeeper/@types/node-10.11.5 greenkeeper/@types/node-10.11.6 greenkeeper/@types/node-10.11.7 greenkeeper/@types/node-10.12.0 greenkeeper/@types/node-10.12.1 greenkeeper/@types/node-10.12.2 greenkeeper/@types/node-10.12.3 greenkeeper/@types/node-10.12.4 greenkeeper/@types/node-10.12.5 greenkeeper/@types/node-10.12.6 greenkeeper/@types/node-10.12.7 greenkeeper/@types/node-10.12.8 greenkeeper/@types/node-10.12.9 greenkeeper/@types/node-10.12.10 greenkeeper/@types/node-10.12.11 greenkeeper/@types/node-10.12.12 greenkeeper/update-to-node-10 master update-readme
Nothing to show
Clone or download
Latest commit e29c58d Dec 10, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.vscode
src
.editorconfig
.gitignore
.travis.yml
LICENSE.txt
README.md
angular-cli.json
karma.conf.js
package-lock.json
package.json
protractor.conf.js
tslint.json

README.md

Todo App example with SN7, Angular2 and Redux


This package is not under active development. You can find our latest packages in the sensenset/sn-client monorepo.


Greenkeeper badge

Build status License Commitizen friendly

This example is simple todo app built with Angular2+Redux upon Sense/Net ECM which has been prepared to demonstrate how to use the new sensenet ECM related libraries sn-client-js and sn-redux.

Quick start

$ git clone https://github.com/SenseNet/sn-angular2-redux-todo-app.git
$ cd sn-angular2-redux-todo-app
$ npm install
$ npm run start

Settings

To use this example you'll need a sensenet ECM portal. To connect the app with the portal set your site's url as the app's siteUrl

import { SetSiteUrl } from 'sn-client-js';

SetSiteUrl('https://mysite.com');

Go to your portal's Portal.setting (/Root/System/Settings/Portal.settings) and check the allowed origins. To get the app working you have to add the app's domain as an allowed origin so that the app can send requests to the portal and get or set data.

{
   AllowedOriginDomains: [ "localhost" ]
}

For further information about CORS in sensenet ECM check this article.

The example app uses one of the built-in TaskList Content in the default sensenet ECM install (/workspaces/Project/budapestprojectworkspace/Tasks). If you removed this Content and its children tasks earlier or want to try with another TaskList change the value of the path variable of SnTodoListComponent in app.component.ts to the chosen list's path.

The example app demonstrates not only how to fetching data but also Content creation and delete. The app doesn't provide authentication because of it's simplicity so you have to make some permission changes in your sensenet ECM portal to let Visitor users adding and removing tasks from the chosen parent list. If you are not familiar with Sense/Net's permission system check the following wiki articles:

Related documents

This project was generated with angular-cli version 1.0.0-beta.24.

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/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.

Further help

To get more help on the angular-cli use ng help or go check out the Angular-CLI README.