DevStash is a high-performance MERN stack platform built for developers to discover, save, and contribute high-quality learning resources. It focuses on security-first authentication, scalable architecture, and a smooth, modern user experience.
This project demonstrates real-world full-stack practices including OAuth integration, protected routing, API optimization, and production-ready deployment.
The application follows a service-oriented deployment architecture, with frontend and backend hosted independently.
| Component | Deployment Platform | URL |
|---|---|---|
| π Frontend (Client) | Vercel | https://devstash-nine.vercel.app/ |
| βοΈ Backend (API Proxy) | Render | https://devstash-1.onrender.com |
β οΈ Note: Backend may take a few seconds to respond initially due to Render free-tier cold starts.
| π Home Page | π All Resources Page |
|---|---|
![]() |
![]() |
| π Resource Detail Page | β Saved Resources Page |
|---|---|
![]() |
![]() |
| π Login Page | π Signup Page |
|---|---|
![]() |
![]() |
DevStash has been officially featured on Product Hunt π
Your support helps the project grow and reach more developers!
π¬ If you like DevStash, consider upvoting and sharing your feedback!
- JWT-based authentication with secure email/password login
- Password hashing using bcrypt
- Google OAuth 2.0 implemented via a custom redirect flow
(Designed to safely bypass COOP/COEP browser security constraints)
- Protected routes using
ProtectedRoute - Public-only routes using
PublicRoute - Role-aware access handling
-
Curated content across:
- 6+ domains
- 48 technologies
- 109+ developer resources
-
Save, explore, and manage learning materials efficiently
- GitHub Issue templates integrated directly into the app
- Users can suggest new resources without modifying code
-
Cold-start mitigation logic to wake Render backend proactively
-
Axios interceptors for:
- Automatic JWT injection
- Centralized error handling
- Instant redirects on unauthorized access
- Fully responsive dark-themed UI
- Built with Tailwind CSS
- Subtle glow effects & smooth animations using AOS
- Mobile-first design approach
- React 18 (Vite-powered)
- Tailwind CSS (Styling)
- React Router DOM (Navigation)
- React Hot Toast (Notifications)
- AOS (Scroll Animations)
- Axios (API Management)
- Node.js & Express
- MongoDB & Mongoose (Database)
- JWT (Session Management)
- Axios (Server-side API calls for OAuth verification)
- Frontend: Vercel
- Backend: Render
- Database: MongoDB Atlas
- Node.js installed
- MongoDB Atlas Account
- Google Cloud Console Project (for OAuth Client ID)
-
Clone the repository
git clone https://github.com/TonyStark-19/DevStash.git cd DevStash -
Frontend Setup
cd frontend npm install # Create a .env file VITE_GOOGLE_CLIENT_ID=your_google_id VITE_API_URL=[https://your-backend-link.com/api](https://your-backend-link.com/api) npm run dev
-
Backend Setup
cd backend npm install # Create a .env file MONGO_URI=your_mongodb_uri JWT_SECRET=your_secret GOOGLE_CLIENT_ID=your_google_id PORT=5000 npm start
This project thrives on community input!
- Give it a Star β: If you find this project useful.
- Contribute: Found a great tutorial? Use the "Suggest a Resource" button in the app to add it to the stash!
- Report Bugs: Open an issue if you encounter any technical glitches.
Please read the CONTRIBUTING.md before you start.
This project is licensed under the MIT License. Feel free to use, modify, and share it β just give proper credit.
Check the LICENSE file for more details.
Made with β€οΈ by Aditya chandel





