How velisanomfula/pwa-application works
This is a Vue todo application with Amplify authentication and a GraphQL-backed task list. Users enter through the authentication view; authenticated users can list, create, and delete tasks, while subscriptions update the displayed list for create and delete events. The router protects the todo route, and the app bootstrap configures Vue, Amplify, and UI plugins. The excerpts show the frontend’s GraphQL operations and calls, but not the AWS backend implementation; service-worker registration is also shown, though its runtime behavior is not explored further here.
Main entry points: Todo.vue Todo view · main.js Vue bootstrap · index.js Route guard · Auth.vue Sign-in view
Components 16
Application
- Vue bootstrap
src/main.js - App shell
src/App.vue - Route guard
src/router/index.js - Vuex store
src/store/index.js - Vuetify setup
src/plugins/vuetify.js - Service worker registration
src/registerServiceWorker.js
Authentication
- Sign-in view
src/views/Auth.vue
Todo workflow
- Todo view
src/views/Todo.vue - Task queries
src/graphql/queries.js - Task mutations
src/graphql/mutations.js - Task subscriptions
src/graphql/subscriptions.js
AWS integration
- AWS configuration
src/aws-exports.js - Amplify services
- GraphQL API
- Task data store
Other components
- User
Connections 19
- User → Sign-in view: signs in
src/views/Auth.vue - User → Todo view: manages tasks
src/views/Todo.vue - Vue bootstrap → App shell: renders
src/main.js - Vue bootstrap → Route guard: installs
src/main.js - Vue bootstrap → Vuex store: installs
src/main.js - Vue bootstrap → Vuetify setup: installs
src/main.js - Vue bootstrap → Service worker registration: loads
src/main.js - Vue bootstrap → AWS configuration: configures
src/main.js - Route guard → Sign-in view: routes to
src/router/index.js - Route guard → Todo view: routes to
src/router/index.js - Sign-in view → Amplify services: checks session
src/views/Auth.vue - Route guard → Amplify services: checks access
src/router/index.js - Todo view → Amplify services: authenticates user
src/views/Todo.vue - Todo view → Task queries: runs
src/views/Todo.vue - Todo view → Task mutations: runs
src/views/Todo.vue - Todo view → Task subscriptions: subscribes with
src/views/Todo.vue - Todo view → GraphQL API: sends GraphQL calls
src/views/Todo.vue - AWS configuration → Amplify services: configures
- GraphQL API → Task data store: reads and writes