Spaces:
Running
Running
| title: MongoDB Data Viewer | |
| emoji: π | |
| colorFrom: blue | |
| colorTo: indigo | |
| sdk: streamlit | |
| sdk_version: "1.28.1" | |
| app_file: app.py | |
| pinned: false | |
| # MongoDB Data Viewer | |
| A modern React application with shadcn/ui styling to display and manage MongoDB data in a beautiful, responsive table interface. | |
| ## Features | |
| - π¨ **Modern UI Design** - Clean, professional interface using shadcn/ui design system | |
| - π± **Responsive Layout** - Works perfectly on desktop, tablet, and mobile devices | |
| - π **Real-time Updates** - Refresh button to fetch latest data from MongoDB | |
| - π **Data Table** - Clean, sortable table with hover effects and loading states | |
| - β‘ **Fast Performance** - Optimized React components with efficient rendering | |
| - π― **Ready for MongoDB** - Designed to easily integrate with your MongoDB database | |
| ## Technology Stack | |
| - **Frontend**: React 19 with modern hooks | |
| - **Styling**: Custom CSS with shadcn/ui design system | |
| - **Components**: Modular, reusable UI components | |
| - **State Management**: React hooks for local state | |
| - **Build Tool**: Create React App | |
| ## Getting Started | |
| 1. **Install Dependencies**: `npm install` | |
| 2. **Start Development Server**: `npm start` | |
| 3. **Build for Production**: `npm run build` | |
| ## MongoDB Integration | |
| The app is designed to easily connect to your MongoDB database. Simply update the `fetchFromMongoDB` function in `src/components/DataTable.jsx` to connect to your actual database. | |
| ## Project Structure | |
| ``` | |
| src/ | |
| βββ components/ | |
| β βββ DataTable.jsx # Main data display component | |
| β βββ ui/ | |
| β βββ button.jsx # Reusable button component | |
| β βββ table.jsx # Table components | |
| βββ App.js # Main application component | |
| βββ index.js # Application entry point | |
| βββ index.css # Custom CSS with shadcn/ui styling | |
| ``` | |
| ## Customization | |
| - **Colors**: Modify CSS variables in `src/index.css` for custom theming | |
| - **Layout**: Adjust the table structure in `DataTable.jsx` | |
| - **Styling**: Update CSS classes for different visual styles | |
| - **Data**: Replace mock data with your actual MongoDB queries | |
| ## Future Enhancements | |
| - π **Search & Filter** - Add search functionality and data filtering | |
| - π **Charts & Graphs** - Integrate data visualization | |
| - π **Authentication** - Add user login and permissions | |
| - π± **PWA Support** - Make it installable as a web app | |
| - π **Dark Mode** - Toggle between light and dark themes | |
| --- | |
| *Built with β€οΈ using React and modern web technologies* | |