This project based on "axios": 0.21.0, ,"core-js": 3.6.5, "vue": 3.0.0, , vue-i18n: 9.0.0-beta.15, ,"vue-router": 4.0.1, "vuex": 4.0.0.
- Global Error Handling
- Http request class based on Axios and Services(Auth , Logger , ... )
- Vuex 4 with multiple modules
- Vue Router w AuthControl beforeRoute option
- Layouts
- i18n inter
- views
- utils
source folder
Images/Fonts/Other media stuff.
Shared and other Components
App config and static data files
Internationalization plugin for Vue.js
- intlify/vue-i18n-next is used.
- defaultLocale is 'en' and have an option 'tr'
- can control via store i18n module
Base app layout components.
- Auth, Home , .. layouts
Header
,Footer
components added in Home layout.
- Http request class based on Axios w Response and Request Middleware classes
- Api class wrapper for Http class
- AuthService based on Api class controls AuthorizationHeader , localStorage and Auth based Apis
- Logger Service used in Global error handling module
Vuex 4 store
- Multiple modules (Auth , i18n)
- AuthRequired - controls Auth beforeEnter w router
- ExeceptionHandler controls global error w window.onerror and Vue.config.errorHandler
- Logs with LoggerService
Intercept
High order class wraps home component. - Global and other dailogs - Main loading screen
Contain views used in app.
- Views index file use Layout and router-view
- Auth , Home , Error(404) views
Environment variables (add this to git ignore).
Root app initialization file.
Root app initialization file.
Router instance and routing declaration.
- router initialization,
- Auth control
- redirect to child w consuming Layouts
npm install
npm run serve
npm run build
npm run lint