A dynamic web application for sharing and discovering fascinating snippets of knowledge across various categories!
Click the image to watch the demo or visit the live site!
SmartSnippets is a self-initiated full-stack web project designed to spread mind-boggling and crisp knowledge in an engaging format. The platform features a dense library of over 450+ snippets/facts across 8 major categories, allowing users to:
- ๐ Discover interesting facts across multiple knowledge domains
- ๐ท๏ธ Filter facts by categories like Technology, Science, Health, and more
- ๐ Vote on snippets as Interesting, Mindblowing, or False
- ๐ See real-time voting statistics for each snippet
- ๐ Share your own knowledge with proper source references
- ๐ Get instant updates with Supabase real-time database
This project showcases my skills in web development using React, JavaScript, HTML, and CSS, and represents countless hours of learning, designing, and coding.
- ๐ง Knowledge Discovery: Explore a vast library of curated snippets across diverse categories
- ๐ Category Filtering: Easily find snippets in your areas of interest with one-click filtering
- ๐ฏ Voting System: Engage with content by voting snippets as Interesting, Mindblowing, or False
- ๐ฑ Responsive Design: Enjoy a seamless experience on any device - mobile, tablet, or desktop
- ๐ Vibrant UI: Category-specific color coding for enhanced visual experience
- ๐ Dispute Detection: Automatic flagging of potentially disputed facts based on voting patterns
- ๐ฃ๏ธ Contribution System: Share your own knowledge with the community with proper source validation
- โก Real-time Updates: See new submissions and vote counts instantly through Supabase integration
The creation of SmartSnippets involved:
-
UI/UX Design: Crafting a minimalistic yet engaging interface that highlights content while maintaining aesthetic appeal
-
React Component Architecture: Building a modular component structure for efficient state management and reusability
-
Database Design: Setting up Supabase tables and relationships to handle facts, categories, and voting mechanisms
-
Responsive Implementation: Ensuring perfect functionality across all device sizes with responsive CSS
-
Real-time Updates: Implementing instant UI updates when users vote or add new snippets
-
Vote System Logic: Creating a robust voting mechanism that properly tracks different vote types while preventing abuse
-
Form Validation: Ensuring snippet submissions include valid sources and appropriate content length
-
Performance Optimization: Maintaining fast load times despite the growing database of snippets
- Node.js (v14 or later)
- npm or yarn
- Clone the repository
git clone https://github.com/yourusername/smart-snippets.git
cd smart-snippets
- Install dependencies
npm install
- Set up environment variables by creating a .env file:
REACT_APP_SUPABASE_URL=your_supabase_url
REACT_APP_SUPABASE_KEY=your_supabase_key
- Start the development server
npm start
- Open your browser and navigate to http://localhost:3000
-
User Accounts: Allow users to create profiles and track their contributions
-
Advanced Filtering: Search snippets by keywords, date, and popularity
-
Fact Verification System: Additional layers for community-based fact checking
-
Dark/Light Mode Toggle: Enhanced visual customization for different preferences
-
Gamification Elements: Points system for active contributors and quality submissions
-
Mobile App Version: Native mobile applications for iOS and Android
Contributions are always welcome! Feel free to fork this repository and add new features or improvements:
- Enhanced UI components
- Additional category options
- Performance optimizations
- Bug fixes and edge case handling
- Accessibility improvements
- New feature ideas
- Special thanks to everyone who contributed snippets to the platform
- React for the amazing front-end library
- Supabase for the powerful backend solution
- Google Fonts for the beautiful typography
- All the incredible mentors and tutorials that helped me learn these technologies
Made with โค๏ธ by Shashank
Discover, Share, and Expand Your Knowledge with SmartSnippets!