diff --git a/README.md b/README.md index 6c4496b..db6ab8d 100644 --- a/README.md +++ b/README.md @@ -6,8 +6,15 @@ vue.js + express.js app starter ## Included - vue + vue-router with example components - express server with routes and api + - vue authenticated session with vuex integrated with express + - vue express routers integrated login api + - vue express integrated authentication,routes,session - simple json based database (lowdb) + - signup & login using mysql knex bookshelf passport express-session express-mysqlstore vuex axios - building\watching scripts and tools + - + + Added to Login samples screen Express and Vue joined vuex store with express passport & express session sample using axios + + Added links from Express to Vue and Vue to Express & check if user is loggedin , getuser info ## Installation diff --git a/template/.babelrc b/template/.babelrc index c13c5f6..f62a3ba 100644 --- a/template/.babelrc +++ b/template/.babelrc @@ -1,3 +1,3 @@ { - "presets": ["es2015"] -} + "presets": ["es2015", "stage-2"] +} \ No newline at end of file diff --git a/template/client/src/client.js b/template/client/src/client.js index 95db287..7779fdc 100644 --- a/template/client/src/client.js +++ b/template/client/src/client.js @@ -1,9 +1,11 @@ import Vue from 'vue'; import router from './router/router.js'; import App from './components/App.vue'; +import store from './modules/store/'; new Vue({ el: '#vue-app', + store:store, router: router, render: createElement => createElement(App) -}); \ No newline at end of file +}); diff --git a/template/client/src/components/App.vue b/template/client/src/components/App.vue index 4c4f35d..7b7ab0e 100644 --- a/template/client/src/components/App.vue +++ b/template/client/src/components/App.vue @@ -3,6 +3,12 @@