Skip to content

Deliver the full realtime publishing assessment#4

Open
alexh-superdev wants to merge 5 commits into
rePurpose-Global:mainfrom
alexh-superdev:feature/blog-app
Open

Deliver the full realtime publishing assessment#4
alexh-superdev wants to merge 5 commits into
rePurpose-Global:mainfrom
alexh-superdev:feature/blog-app

Conversation

@alexh-superdev
Copy link
Copy Markdown

@alexh-superdev alexh-superdev commented Apr 22, 2026

Summary

This PR completes the assessment end to end across the frontend and backend. It delivers authenticated publishing, a protected post feed, realtime post notifications, and a cleaner production-ready UI on top of the original starter.

What’s included

  • Added JWT-based authentication with register, login, and me
  • Added Prisma with SQLite for persistence
  • Implemented protected post creation and feed queries
  • Added realtime postPublished subscriptions with authenticated graphql-ws support
  • Wired the Vue app to Apollo for queries, mutations, and subscriptions
  • Added session persistence, route protection, logout, and auth redirects
  • Built the publishing workspace with composer, feed, loading/error states, and live updates
  • Refined the shell, auth screens, and overall layout for a cleaner UX

Backend

  • NestJS GraphQL code-first schema
  • Prisma models for users and posts
  • JWT auth guard and GraphQL context integration
  • Authenticated mutations and queries for registration, login, profile lookup, feed loading, and post creation
  • Realtime subscription publishing on successful post creation

Frontend

  • Vue 3 + Vue Router app shell
  • Apollo client setup for HTTP and WebSocket GraphQL traffic
  • Login and registration flows connected to the backend
  • Protected posts view with composer and live feed
  • Realtime notification handling without page reload
  • UX polish for layout, readability, hierarchy, and interaction states

###Verification

  • Backend tests passed
  • Backend build passed
  • Frontend type-check passed
  • Frontend production build passed
  • Manual smoke flow verified:
    -- register
    -- login
    -- stay signed in on refresh
    -- create a post
    -- receive live updates in another authenticated session

Notes

This implementation keeps the scope intentionally focused on the required assessment flow: authentication, publishing, and realtime updates. Advanced account-management features like password reset, profile editing, and roles are intentionally out of scope.

Video_2026-04-22_062126.mp4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant