How yamakazeankk/appgreeniot works
Project type and purpose
• This is a cross-platform Green IoT monitoring application built with React Native + Expo for mobile and Next.js for web (using the new App Router under app/).
File structure
• Top-level config:
• app.json + metro.config.js – Expo + Metro bundler setup for mobile
• babel.config.js, tsconfig.json, tailwind.config.js – build and styling configs
• Client code:
• app/ – Next.js web routes and layouts ((auth), (tabs), dynamic pages under page/ and grow/)
• loginProfile/ – A standalone loginProfile component for mobile?
• Shared UI:
• components/ – All reusable UI pieces (cards, charts, modals, grids, chat interface)
• components/ui/ – Lower-level UI primitives (chat interface)
• State & logic:
• context/auth.tsx – React Context for auth state
• hooks/ – Custom hooks (useWearther, useColorScheme, etc.)
• Data & services:
• firebase.tsx – Firebase initialization (Auth, Firestore, Storage)
• data/data.ts – Static or seed data
• Assets & styling:
• assets/ – Fonts, images
• global.css + nativewind-env.d.ts – Tailwind styles and types
README for additional insights
• The README states “React Native + Expo,” instructs npm install and expo start.
• It outlines a conventional project split (assets, components, screens, navigation, constants, services). The actual tree uses Next.js for web routes (app/) and a mixture of “components” and “hooks.”