Eliq Drinks App is a white-label Angular application designed to showcase a list of drinks and their details. The app is built with flexibility in mind, allowing it to be branded and configured through a JSON configuration file. This approach makes it easy to adapt the app for different clients or use cases.
The config.json file serves as the central configuration point for customizing the app's behavior and appearance. This file allows you to dynamically manage UI elements without modifying the codebase. Below are the key properties and their purposes:
- appTitle: Sets the app's title dynamically, which is displayed in the header and browser tab.
- themeColor: Defines the primary theme color for the app, affecting the overall look and feel.
- showLanguages: Specifies the list of supported languages for displaying instructions.
- apiBaseUrl: Configures the base URL for API calls.
{
"appTitle": "Eliq Drinks",
"themeColor": "#ff6f61",
"showLanguages": ["en", "es", "de", "fr", "it"],
"apiBaseUrl": "https://api.example.com"
}- Open the
assets/config/config.jsonfile. - Update the properties as needed to reflect your branding and requirements.
- Save the file and refresh the app to see the changes.
- White-Label Architecture: The app is designed to be easily customizable for different clients. This decision was made to reduce development time for new projects while maintaining a consistent codebase.
- JSON Configuration: Using a JSON file for configuration allows non-developers to make changes without touching the code, improving accessibility and reducing the risk of errors.
- Trade-offs: While the JSON configuration provides flexibility, it adds a layer of complexity in ensuring that all UI elements are dynamically updated based on the file. This requires thorough testing to avoid inconsistencies.
The final compiled version of the app has been deployed to GitHub Pages. You can access it at the following URL:
https://GetEliq.github.io/Eliq-drinks-app-Chadi/
Note: If you encounter a 404 error, ensure that the gh-pages branch is set as the source for GitHub Pages in the repository settings.
- Clone the repository:
git clone https://github.com/GetEliq/Eliq-drinks-app-Chadi.git
- Navigate to the project directory:
cd eliq-drinks-app - Install dependencies:
npm install
- Start the development server:
npm start
- Open your browser and navigate to http://localhost:4200.
To run the unit tests:
npm test