This mobile application is built using React Native and Expo, providing a cross-platform solution for both iOS and Android. The app connects to a REST API backend for product and order management, utilizing modern tooling for efficient development and a smooth user experience.
- React Native: Build native mobile apps using JavaScript and React
- Expo: Streamline development with simplified tooling and workflows
- Expo Router: Handle screen navigation with file-based routing
- Gluestack: Professional and customizable UI component library
- TanStack Query: Efficient data fetching, caching, and state management
- REST API Integration: Connect to backend services for products and orders
- Node.js (v16 or newer)
- npm or yarn
- Expo CLI
- Android Studio (for Android development) or Xcode (for iOS development)
- iOS device or simulator / Android device or emulator
- Clone the repository
git clone https://github.com/mwendaB/FullstackEcommerce.git
cd FullstackEcommerce- Install dependencies
npm install
# or
yarn install- Start the development server
npx expo start- Open the app on your device:
- Scan the QR code with the Expo Go app (Android) or the Camera app (iOS)
- Press 'a' to open on Android emulator
- Press 'i' to open on iOS simulator
The app connects to a REST API for handling products and orders. Configuration for the API connection can be found in services/api.js.
import { fetchProducts } from '../services/api';
import { useQuery } from '@tanstack/react-query';
function ProductScreen() {
const { data, isLoading, error } = useQuery({
queryKey: ['products'],
queryFn: fetchProducts
});
// Render UI based on data, loading, and error states
}To create production builds:
- For Expo builds:
eas build --platform ios
eas build --platform android- For local builds:
npx expo run:ios
npx expo run:androidPlease follow the project's coding standards and submit pull requests for review.
[Your License Here]