Skip to content

Added basic writing editor and login/register#210

Open
Akhil-R wants to merge 2 commits into
vicharanashala:mainfrom
Akhil-R:feat/auth-editor
Open

Added basic writing editor and login/register#210
Akhil-R wants to merge 2 commits into
vicharanashala:mainfrom
Akhil-R:feat/auth-editor

Conversation

@Akhil-R
Copy link
Copy Markdown

@Akhil-R Akhil-R commented May 15, 2026

This PR completes Feature Requests (#1 , #2) .

Frontend:

  • React + TypeScript
  • User registration/login with form validation (react-hook-form)
  • JWT authentication with persistence in localStorage
  • Protected routes for authenticated users
  • Basic text editor with auto-save to localStorage
    • Debounce: waits 1 second after typing stops before saving
  • Editor shows word/line/character count
  • Lazy loading for pages (Login, Register, Editor)

Backend:

  • Express server with MongoDB connection
  • User model with bcrypt password hashing
  • Auth endpoints: register, login, me (get current user)
  • JWT middleware for protecting routes
  • Zod validation schemas

How to install and run:

  1. Clone the repo
  2. Install dependencies: npm install
  3. Run both frontend + backend together: npm run dev
  4. Or run separately:
    • npm run dev:backend (or go to backend folder and run npm run dev)
    • npm run dev:frontend (or go to frontend folder and run npm run dev)

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