Skip to content

blaskodaniel/sn-angular-redux-todo-app

Repository files navigation

Todo App example with SN7, Angular 1.x and Redux

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

Quick start

$ git clone https://github.com/blaskodaniel/sn-angular-redux-todo-app.git
$ cd sn-angular-redux-todo-app
$ npm install
$ npm start

Settings

To use this example you'll need a Sense/Net 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 Sense/Net ECM check this article.

The example app uses one of the built-in TaskList Content in the default Sense/Net 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 Sense/Net 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

About

Example todo app built with Angular1.x+Redux upon Sense/Net ECM

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published