Skip to content

repurpose global assignment changes completed#1

Open
yogesh-chougule1 wants to merge 1 commit intorePurpose-Global:mainfrom
yogesh-chougule1:my-feature-new
Open

repurpose global assignment changes completed#1
yogesh-chougule1 wants to merge 1 commit intorePurpose-Global:mainfrom
yogesh-chougule1:my-feature-new

Conversation

@yogesh-chougule1
Copy link

@yogesh-chougule1 yogesh-chougule1 commented Dec 20, 2025

Implemented full assignment on top of the existing codebase: backend (NestJS + GraphQL + TypeORM) and frontend (Vue 3 + Apollo + Tailwind). Features: user registration/login (JWT), create posts, and real-time notifications via GraphQL subscriptions.

What’s included

  1. Backend
    Authentication: register/login (bcrypt + JWT)
    Entities: User, Post (TypeORM + SQLite)
    GraphQL (code-first): queries, mutations, subscriptions
    GqlAuthGuard (JWT via Authorization header)
    PubSub-based postAdded subscription
    AppResolver with root Query to avoid schema errors
    .env.example (JWT_SECRET)

** Run instructions (local) **
cd backend
npm install --legacy-peer-deps
npx @nestjs/cli@9 start --watch

GraphQL: http://localhost:3000/graphql

  1. Frontend
    Vue 3 + Vite + TypeScript
    Apollo Client + graphql-ws (HTTP + WS split link)
    Pages: Home (posts + live subscription), Register, Login, New Post
    UI: Tailwind CSS, Toast notifications, PostCard component

** Run instructions (local) **
cd frontend
npm install --legacy-peer-deps
npm run dev

Frontend: http://localhost:5173

Env
See backend/.env.example — add JWT_SECRET for custom secrets (defaults to 'SECRET' if omitted).

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