-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Salm Doo edited this page Nov 21, 2023
·
13 revisions
The application allows the users to review restaurants near their location such as the rating, services, foods… It also allows users to review their favorite choices, and the best recommendations, make a reservation, and book a dish of a restaurant in a convenient way.
- Search and review restaurant information
- Set favorite for restaurant and dish
- Reserve at a favorite restaurant
- Book a dish from a restaurant
- View the restaurant location on the map
The diagram offers a comprehensive overview of the primary system activities, emphasizing key processes and interactions.
- Users have access to numerous features without requiring login.
- Login prompts are selectively introduced, specifically when users initiate reservation bookings or place orders.
- The system adeptly supports customers through the payment process, enhancing the user journey and system functionality.
Apply Vertical Slice Architecture to build the application. Componentization distinguishes meal and meal details, allowing independent modifications
- Model: Pure structs define object attributes, with the option to implement the DecodeDataProtocol for decoding data when necessary.
- View: Employs a ViewModel, injecting a suitable protocol to retrieve and present essential data on the screen.
- ViewModel: Receives a FetchProtocol from the View, utilizes the fetchData() method to obtain results, processes the outcomes, and publishes the final result to the views.
- DataFetcher: Defines logic related to data retrieval, implementing the FetchProtocol to retrieve data from various sources, including external systems, RESTful APIs, or local storage
This activity diagram illustrates a modular and scalable system architecture
- Each feature is encapsulated within its dedicated model and service protocol.
- The protocols efficiently access data from diverse resources, supporting seamless testing through the integration of mock data.
- Multiple views capable of sharing a common view model tailored to their specific purposes, that emphasize a flexible design.
- Services within the system exhibit a unified approach, utilizing a shared generic class to enhance code reusability and maintainability.
- Optimized for Efficiency and Scalability: Utilizing Vertical Slice Architecture, generic classes, and adhering to POP principles ensures a robust, easily expandable, and test-friendly code structure.
- Highly code reusable, performs consistently in the system: Employing POP and MVVM architecture ensures maximum code reuse and consistent performance. Modern async/await pattern manages asynchronous API requests seamlessly.
- High-Level Security: Utilize the keychain technology to safeguard user-sensitive information. Prior to storage, a rigorous encryption process is applied to ensure the protection and confidentiality of the stored data.
- Language: Swift, SwiftUI
- Platform: IOS
- Design pattern: MVVM, Singleton, Delegate and Observation
- Framework: SwiftUI, UIKit, MapKit, Core Data, Core Location, Combine
- Web services/Notification: RESTful, JSON, Async/Await
- Third-party: SDWebImage
- Security: Keychain, JWT
- Multi threads: Task, DispatchQueue, MainActor
- Testing: unit test - XCTest (TDD), XCUITest