A modern mobile application for Restaurant, built with Next.js and Capacitor to deliver a seamless coffee shop experience on both web and mobile platforms.
- User Authentication - Secure login system
- Onboarding Flow - Smooth introduction to the app
- Responsive Design - Works on mobile and desktop
- Menu Browsing - Explore our coffee selection
- Shopping Cart - Easy order management
- Order Tracking - Real-time order status updates
- Mobile Optimized - Built with Capacitor for native mobile experience
- Frontend Framework: Next.js 13+ (App Router)
- Mobile: Capacitor
- Styling: Tailwind CSS
- State Management: React Context API
- Maps Integration: Google Maps API
- Charts: Recharts
- Type Safety: TypeScript
- Splash Screen
- Onboarding
- Login/Register
- Home
- Menu
- Cart
- Orders
- Profile
- Node.js 18.0.0 or later
- npm or yarn
- Android Studio (for Android development)
- Xcode (for iOS development, macOS only)
-
Clone the repository:
git clone https://github.com/beydah/Restaurant-Mobile-App.git cd Restaurant-Mobile-App -
Install dependencies:
npm install # or yarn install
After cloning the repository, follow these steps to set up the project and generate necessary directories:
-
Install Dependencies (creates
node_modules/)npm install # or yarn install -
Generate Next.js Build Files (creates
.next/)# For development npm run dev # Or for production build npm run build
-
Set Up Mobile Platforms (creates
android/and/orios/)# For Android npx cap add android npx cap sync android # For iOS (macOS only) npx cap add ios npx cap sync ios
-
Run the Application
# Web development npm run dev # Or for mobile development # Android npx cap open android # iOS (macOS only) npx cap open ios
-
Start the development server:
npm run dev # or yarn dev -
Open http://localhost:3000 in your browser.
-
Create a production build:
npm run build
-
Export the static files:
npm run export
-
Add Android platform:
npx cap add android
-
Copy web assets and sync with Capacitor:
npx cap copy android
-
Open in Android Studio:
npx cap open android
-
Build and run from Android Studio
-
Add iOS platform:
npx cap add ios
-
Copy web assets and sync with Capacitor:
npx cap copy ios
-
Open in Xcode:
npx cap open ios
-
Build and run from Xcode
# Install all dependencies
npm install
# or
yarn install# Development build
npm run dev
# or for production build
npm run build# For Android
npx cap add android
npx cap sync android
# For iOS (macOS only)
npx cap add ios
npx cap sync iosRestaurant-Mobile-App/
βββ app/ # App router pages
β βββ cart/ # Shopping cart page
β βββ home/ # Home page
β βββ menu/ # Menu page
β βββ orders/ # Orders page
βββ components/ # Reusable components
β βββ ui/ # UI components
β βββ BottomNav.tsx # Bottom navigation
β βββ Login.tsx # Login component
β βββ Onboarding.tsx # Onboarding flow
β βββ TopNav.tsx # Top navigation
βββ public/ # Static files
βββ android/ # Android native code
βββ ios/ # iOS native code (if exists)
Create a .env.local file in the root directory and add the following variables:
# example
NEXT_PUBLIC_GOOGLE_MAPS_API_KEY=your_google_maps_api_key
# Add other environment variables here- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
- Next.js
- Capacitor
- Tailwind CSS
- All the amazing open-source libraries used in this project