Installation Guide
This guide will walk you through setting up the Bİ DOLU İÇECEK application on your local development environment.Prerequisites
Before you begin, ensure you have the following installed on your system:The application requires Node.js to run the development server and build the production bundle.
Required Software
- Node.js: Version 14.x or higher recommended
- npm: Comes bundled with Node.js (version 6.x or higher)
- Git: For cloning the repository
Verify Installation
Check your Node.js and npm versions:Installation Steps
Clone the Repository
Clone the project repository to your local machine:
Replace
[repo-url] with the actual repository URL provided by your team.Install Dependencies
Install all required npm packages:This will install the following key dependencies:Core Dependencies:
[email protected]- React library[email protected]- React DOM renderer[email protected]- Create React App scripts
[email protected]- Utility-first CSS framework[email protected]- PostCSS plugin for vendor prefixes[email protected]- CSS transformation tool
@vercel/[email protected]- Remote configuration management
@testing-library/[email protected]- React testing utilities@testing-library/[email protected]- Jest DOM matchers
Environment Configuration (Optional)
The application uses Edge Config for dynamic configuration management. If you need to set up Edge Config:Create a Add your Edge Config connection string:
.env file in the root directory:Edge Config is optional. The application will use default configurations from
src/config/ files if Edge Config is not available.Configuration Files
The following configuration files can be customized:src/config/serviceHours.js- Service hours settingssrc/config/whatsapp.js- WhatsApp phone number and messagessrc/config/orderLimits.js- Minimum/maximum order amountssrc/config/damacanaLimits.js- Damacana ordering time restrictionssrc/config/language.js- Multi-language support
Add Product Images (Optional)
The application supports custom product images. To add images:Create the images directory:Add your product images to
public/images/ directory. The application expects:logo.png- Company logo (150-250px width, 40-60px height)- Product images referenced in
src/data/products.js - Video files in
public/videos/(optional)
If images are not found, the application will display emoji placeholders defined in the products data.
Verify Installation
Verify that the installation was successful by checking the project structure:You should see:
node_modules/- Installed dependenciespackage.json- Project configurationsrc/- Source code directorypublic/- Static assetstailwind.config.js- Tailwind CSS configuration (if present)
Project Structure
After installation, your project structure should look like this:Common Installation Issues
Node Version Mismatch
If you encounter errors during installation, ensure you’re using a compatible Node.js version:Permission Errors
If you get permission errors duringnpm install:
Cache Issues
If installation fails, try clearing the npm cache:Next Steps
Now that you have installed the application, proceed to the Quick Start guide to run the development server:Quick Start Guide
Learn how to run the development server and explore the application features