Spaces:
Running
Running
James McCool
commited on
Commit
Β·
8b4d107
1
Parent(s):
d2e071d
added README
Browse files
README.md
ADDED
@@ -0,0 +1,74 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
title: MongoDB Data Viewer
|
3 |
+
emoji: π
|
4 |
+
colorFrom: blue
|
5 |
+
colorTo: indigo
|
6 |
+
sdk: streamlit
|
7 |
+
sdk_version: "1.28.1"
|
8 |
+
app_file: app.py
|
9 |
+
pinned: false
|
10 |
+
---
|
11 |
+
|
12 |
+
# MongoDB Data Viewer
|
13 |
+
|
14 |
+
A modern React application with shadcn/ui styling to display and manage MongoDB data in a beautiful, responsive table interface.
|
15 |
+
|
16 |
+
## Features
|
17 |
+
|
18 |
+
- π¨ **Modern UI Design** - Clean, professional interface using shadcn/ui design system
|
19 |
+
- π± **Responsive Layout** - Works perfectly on desktop, tablet, and mobile devices
|
20 |
+
- π **Real-time Updates** - Refresh button to fetch latest data from MongoDB
|
21 |
+
- π **Data Table** - Clean, sortable table with hover effects and loading states
|
22 |
+
- β‘ **Fast Performance** - Optimized React components with efficient rendering
|
23 |
+
- π― **Ready for MongoDB** - Designed to easily integrate with your MongoDB database
|
24 |
+
|
25 |
+
## Technology Stack
|
26 |
+
|
27 |
+
- **Frontend**: React 19 with modern hooks
|
28 |
+
- **Styling**: Custom CSS with shadcn/ui design system
|
29 |
+
- **Components**: Modular, reusable UI components
|
30 |
+
- **State Management**: React hooks for local state
|
31 |
+
- **Build Tool**: Create React App
|
32 |
+
|
33 |
+
## Getting Started
|
34 |
+
|
35 |
+
1. **Install Dependencies**: `npm install`
|
36 |
+
2. **Start Development Server**: `npm start`
|
37 |
+
3. **Build for Production**: `npm run build`
|
38 |
+
|
39 |
+
## MongoDB Integration
|
40 |
+
|
41 |
+
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.
|
42 |
+
|
43 |
+
## Project Structure
|
44 |
+
|
45 |
+
```
|
46 |
+
src/
|
47 |
+
βββ components/
|
48 |
+
β βββ DataTable.jsx # Main data display component
|
49 |
+
β βββ ui/
|
50 |
+
β βββ button.jsx # Reusable button component
|
51 |
+
β βββ table.jsx # Table components
|
52 |
+
βββ App.js # Main application component
|
53 |
+
βββ index.js # Application entry point
|
54 |
+
βββ index.css # Custom CSS with shadcn/ui styling
|
55 |
+
```
|
56 |
+
|
57 |
+
## Customization
|
58 |
+
|
59 |
+
- **Colors**: Modify CSS variables in `src/index.css` for custom theming
|
60 |
+
- **Layout**: Adjust the table structure in `DataTable.jsx`
|
61 |
+
- **Styling**: Update CSS classes for different visual styles
|
62 |
+
- **Data**: Replace mock data with your actual MongoDB queries
|
63 |
+
|
64 |
+
## Future Enhancements
|
65 |
+
|
66 |
+
- π **Search & Filter** - Add search functionality and data filtering
|
67 |
+
- π **Charts & Graphs** - Integrate data visualization
|
68 |
+
- π **Authentication** - Add user login and permissions
|
69 |
+
- π± **PWA Support** - Make it installable as a web app
|
70 |
+
- π **Dark Mode** - Toggle between light and dark themes
|
71 |
+
|
72 |
+
---
|
73 |
+
|
74 |
+
*Built with β€οΈ using React and modern web technologies*
|