A React Native app for the Little Lemon Restaurant that allows users to browse the menu, search for items, and filter by categories. The app fetches data from an online API and stores it locally using SQLite.
- Node.js
- Expo CLI
- SQLite (included with Expo)
- Clone the repository:
git clone https://github.com/terzidest/little-lemon.git cd little-lemon
- Install dependencies:
npm install
- Start the development server:
npx expo start
- Run the app on an emulator or physical device using the Expo Go app.
- Browse the menu, search for items, and filter by categories.
assets/
: Images and fonts.components/
: Reusable components.screens/
: Screen components.database.js
: SQLite database setup and functions.App.js
: Entry point of the app.
- React Native
- Expo
- SQLite
- Axios
- Browse menu items with images and descriptions.
- Search for items by name.
- Filter items by categories (Starters, Mains, Desserts, Drinks, Specials).
The app fetches menu data from the Little Lemon API and stores it locally using SQLite.
SQLite is used to store menu data locally for offline access. The database.js
file contains functions to manage the local database.
The app uses the Context API to manage global state, such as selected categories and search terms.