Skip to content

Backend implementaiton#29

Open
iamankit083 wants to merge 5 commits intoVinayKumar42:mainfrom
iamankit083:Backend-implementaiton
Open

Backend implementaiton#29
iamankit083 wants to merge 5 commits intoVinayKumar42:mainfrom
iamankit083:Backend-implementaiton

Conversation

@iamankit083
Copy link
Copy Markdown

📋 Pull Request Description

This PR implements a full-stack backend for the app, replacing local JSON file storage with a cloud database. Resolves #8.

🔄 Type of Change

  • ✨ New feature (non-breaking change which adds functionality)
  • 🔨 Refactor (code improvement without changing functionality)
  • 📚 Documentation update

📝 Changes Made

Backend (new)

  • Added Express.js REST API with full CRUD for pastes
  • Added MongoDB Atlas integration via Mongoose
  • Added JWT-based authentication (signup, login, protected routes)
  • Added Mongoose schemas for User and Paste
  • Added bcryptjs for password hashing
  • Added backend .env.example and .gitignore

Frontend (updated)

  • Replaced Redux local state with API calls to the backend
  • Added src/config.js for centralized API URL management
  • Frontend now uses VITE_API_URL env variable — works locally and in production
  • Added Login and Signup pages
  • Added protected routes with JWT token
  • Added dark mode toggle
  • Added .env.example and .gitignore for frontend
  • Updated README with full-stack setup instructions

🔗 Related Issue

closes #8

@vercel
Copy link
Copy Markdown

vercel bot commented Mar 10, 2026

@iamankit083 is attempting to deploy a commit to the vinayboss81265's projects Team on Vercel.

A member of the Team first needs to authorize it.

Signed-off-by: Ankit Chakrabortty <ankitchakraborttyjgec@gmail.com>
@VinayKumar42
Copy link
Copy Markdown
Owner

@iamankit083
Was this issue assigned to you? Why did you directly create a pull request

@iamankit083
Copy link
Copy Markdown
Author

iamankit083 commented Mar 11, 2026

You had mentioned “Go for it @iamankit083” on the issue earlier, so I assumed I could proceed with the implementation. Based on that, I worked on the backend feature and created this PR.

@VinayKumar42
Copy link
Copy Markdown
Owner

First create the PR, and after it gets assigned, then this PR can be merged. Without assignment, this PR has no meaning.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature : Implement Backend & Persistent Storage for Notes

2 participants