This repository has been archived by the owner. It is now read-only.
Example todo app built with Vue+Redux upon sensenet
Switch branches/tags
greenkeeper/autoprefixer-8.0.0 greenkeeper/autoprefixer-8.1.0 greenkeeper/autoprefixer-8.2.0 greenkeeper/autoprefixer-8.3.0 greenkeeper/autoprefixer-8.4.0 greenkeeper/autoprefixer-8.4.1 greenkeeper/autoprefixer-8.5.0 greenkeeper/autoprefixer-8.5.1 greenkeeper/autoprefixer-8.6.0 greenkeeper/autoprefixer-8.6.1 greenkeeper/autoprefixer-8.6.2 greenkeeper/autoprefixer-8.6.3 greenkeeper/autoprefixer-8.6.4 greenkeeper/autoprefixer-8.6.5 greenkeeper/autoprefixer-9.0.0 greenkeeper/autoprefixer-9.0.1 greenkeeper/autoprefixer-9.0.2 greenkeeper/autoprefixer-9.1.0 greenkeeper/autoprefixer-9.1.1 greenkeeper/autoprefixer-9.1.2 greenkeeper/autoprefixer-9.1.4 greenkeeper/autoprefixer-9.1.5 greenkeeper/autoprefixer-9.2.0 greenkeeper/autoprefixer-9.2.1 greenkeeper/autoprefixer-9.3.0 greenkeeper/autoprefixer-9.3.1 greenkeeper/autoprefixer-9.4.0 greenkeeper/autoprefixer-9.4.1 greenkeeper/autoprefixer-9.4.2 greenkeeper/babel-loader-8.0.0 greenkeeper/babel-loader-8.0.1 greenkeeper/babel-loader-8.0.2 greenkeeper/babel-loader-8.0.3 greenkeeper/babel-loader-8.0.4 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/css-loader-0.28.8 greenkeeper/css-loader-0.28.9 greenkeeper/css-loader-0.28.10 greenkeeper/css-loader-0.28.11 greenkeeper/css-loader-1.0.0 greenkeeper/css-loader-1.0.1 greenkeeper/css-loader-2.0.0 greenkeeper/css-loader-pin-0.28.7 greenkeeper/file-loader-2.0.0 greenkeeper/html-webpack-plugin-3.0.0 greenkeeper/html-webpack-plugin-3.0.1 greenkeeper/html-webpack-plugin-3.0.3 greenkeeper/html-webpack-plugin-3.0.4 greenkeeper/html-webpack-plugin-3.0.5 greenkeeper/html-webpack-plugin-3.0.6 greenkeeper/html-webpack-plugin-3.0.7 greenkeeper/html-webpack-plugin-3.0.8 greenkeeper/html-webpack-plugin-3.1.0 greenkeeper/html-webpack-plugin-3.2.0 greenkeeper/http-proxy-middleware-0.18.0 greenkeeper/http-proxy-middleware-0.19.0 greenkeeper/http-proxy-middleware-0.19.1 greenkeeper/ora-2.0.0 greenkeeper/ora-2.1.0 greenkeeper/ora-3.0.0 greenkeeper/semantic-release-11.0.2 greenkeeper/semantic-release-12.2.2 greenkeeper/semantic-release-12.2.4 greenkeeper/semantic-release-12.2.5 greenkeeper/semantic-release-12.4.0 greenkeeper/semantic-release-12.4.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/semver-5.5.0 greenkeeper/semver-5.5.1 greenkeeper/semver-5.6.0 greenkeeper/semver-pin-5.4.1 greenkeeper/shelljs-0.8.0 greenkeeper/shelljs-0.8.1 greenkeeper/shelljs-0.8.2 greenkeeper/shelljs-0.8.3 greenkeeper/sn-redux-3.4.1 greenkeeper/sn-redux-3.4.2 greenkeeper/sn-redux-3.4.3 greenkeeper/update-to-node-10 greenkeeper/url-loader-1.0.0 greenkeeper/url-loader-1.0.1 greenkeeper/url-loader-1.1.0 greenkeeper/url-loader-1.1.1 greenkeeper/url-loader-1.1.2 greenkeeper/vue-loader-14.0.0 greenkeeper/vue-loader-14.0.1 greenkeeper/vue-loader-14.0.2 greenkeeper/vue-loader-14.0.3 greenkeeper/vue-loader-14.1.0 greenkeeper/vue-loader-14.1.1 greenkeeper/vue-loader-14.2.0 greenkeeper/vue-loader-14.2.1 greenkeeper/vue-loader-14.2.2 greenkeeper/vue-loader-15.0.0-rc.1 greenkeeper/vue-loader-15.0.0 greenkeeper/vue-loader-15.0.1 greenkeeper/vue-loader-15.0.2 greenkeeper/vue-loader-15.0.3 greenkeeper/vue-loader-15.0.4 greenkeeper/vue-loader-15.0.5 greenkeeper/vue-loader-15.0.6 greenkeeper/vue-loader-15.0.7 greenkeeper/vue-loader-15.0.9 greenkeeper/vue-loader-15.0.10 greenkeeper/vue-loader-15.0.11 greenkeeper/vue-loader-15.0.12 greenkeeper/vue-loader-15.1.0 greenkeeper/vue-loader-15.2.0 greenkeeper/vue-loader-15.2.1 greenkeeper/vue-loader-15.2.2 greenkeeper/vue-loader-15.2.3 greenkeeper/vue-loader-15.2.4 greenkeeper/vue-loader-15.2.5 greenkeeper/vue-loader-15.2.6 greenkeeper/vue-loader-15.2.7 greenkeeper/vue-loader-15.3.0 greenkeeper/vue-loader-15.4.0 greenkeeper/vue-loader-15.4.1 greenkeeper/vue-loader-15.4.2 greenkeeper/vue-style-loader-4.0.0 greenkeeper/vue-style-loader-4.0.1 greenkeeper/vue-style-loader-4.0.2 greenkeeper/vue-style-loader-4.1.0 greenkeeper/vue-style-loader-4.1.1 greenkeeper/vue-style-loader-4.1.2 greenkeeper/webpack-4.0.0 greenkeeper/webpack-4.0.1 greenkeeper/webpack-4.1.0 greenkeeper/webpack-4.1.1 greenkeeper/webpack-4.2.0 greenkeeper/webpack-4.3.0 greenkeeper/webpack-4.4.0 greenkeeper/webpack-4.5.0 greenkeeper/webpack-4.6.0 greenkeeper/webpack-4.7.0 greenkeeper/webpack-4.8.2 greenkeeper/webpack-4.8.3 greenkeeper/webpack-4.9.0 greenkeeper/webpack-4.9.1 greenkeeper/webpack-4.9.2 greenkeeper/webpack-4.10.0 greenkeeper/webpack-4.10.1 greenkeeper/webpack-4.10.2 greenkeeper/webpack-4.11.0 greenkeeper/webpack-4.11.1 greenkeeper/webpack-4.12.0 greenkeeper/webpack-4.12.1 greenkeeper/webpack-4.12.2 greenkeeper/webpack-4.13.0 greenkeeper/webpack-4.14.0 greenkeeper/webpack-4.15.0 greenkeeper/webpack-4.15.1 greenkeeper/webpack-4.16.0 greenkeeper/webpack-4.16.1 greenkeeper/webpack-4.16.2 greenkeeper/webpack-4.16.3 greenkeeper/webpack-4.16.4 greenkeeper/webpack-4.16.5 greenkeeper/webpack-4.17.0 greenkeeper/webpack-4.17.1 greenkeeper/webpack-4.17.2 greenkeeper/webpack-4.17.3 greenkeeper/webpack-4.18.0 greenkeeper/webpack-4.18.1 greenkeeper/webpack-4.19.0 greenkeeper/webpack-4.19.1 greenkeeper/webpack-4.20.0 greenkeeper/webpack-4.20.1 greenkeeper/webpack-4.20.2 greenkeeper/webpack-4.21.0 greenkeeper/webpack-4.22.0 greenkeeper/webpack-4.23.0 greenkeeper/webpack-4.23.1 greenkeeper/webpack-4.24.0 greenkeeper/webpack-4.25.0 greenkeeper/webpack-4.25.1 greenkeeper/webpack-4.26.0 greenkeeper/webpack-4.26.1 greenkeeper/webpack-4.27.0 greenkeeper/webpack-4.27.1 greenkeeper/webpack-dev-middleware-2.0.0 greenkeeper/webpack-dev-middleware-2.0.1 greenkeeper/webpack-dev-middleware-2.0.2 greenkeeper/webpack-dev-middleware-2.0.3 greenkeeper/webpack-dev-middleware-2.0.4 greenkeeper/webpack-dev-middleware-2.0.5 greenkeeper/webpack-dev-middleware-2.0.6 greenkeeper/webpack-dev-middleware-3.0.0 greenkeeper/webpack-dev-middleware-3.0.1 greenkeeper/webpack-dev-middleware-3.1.0 greenkeeper/webpack-dev-middleware-3.1.1 greenkeeper/webpack-dev-middleware-3.1.2 greenkeeper/webpack-dev-middleware-3.1.3 greenkeeper/webpack-dev-middleware-3.2.0 greenkeeper/webpack-dev-middleware-3.3.0 greenkeeper/webpack-dev-middleware-3.4.0 greenkeeper/webpack-hot-middleware-2.23.1 greenkeeper/webpack-hot-middleware-2.24.0 greenkeeper/webpack-hot-middleware-2.24.1 greenkeeper/webpack-hot-middleware-2.24.2 greenkeeper/webpack-hot-middleware-2.24.3 greenkeeper/webpack-hot-middleware-pin-2.23.0 master update-readme
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
build
config
src
.babelrc
.gitignore
.travis.yml
CONTRIBUTING.md
README.md
index.html
package.json

README.md

Todo App example with SN7, Vue.js 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 Codacy Badge semantic-release Commitizen friendly

This example is simple todo app built with Vue+Redux upon sensenet 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-vue-redux-todo-app.git
$ cd sn-vue-redux-todo-app
$ npm install
$ npm run dev

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:13505" ]
}

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 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 rootUrl variable in AddTodo.vue and App.vue 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 sensenet ECM's permission system check the following wiki articles:

Related documents

Build Setup

# install dependencies
npm install

# serve with hot reload at localhost:8080
npm run dev

# build for production with minification
npm run build

For detailed explanation on how things work, checkout the guide and docs for vue-loader.