Installation Guide¶
This guide covers setting up ShopSync for development. If you just want to use the app, see the Quick Start Guide instead.
Prerequisites¶
Before you begin, ensure you have the following installed:
Required Software¶
| Software | Minimum Version | Recommended | Download |
|---|---|---|---|
| Flutter SDK | 3.6.0 | Latest stable | flutter.dev |
| Dart SDK | 3.0.0 | Included with Flutter | - |
| Git | 2.x | Latest | git-scm.com |
| Android Studio | 2021.1+ | Latest | developer.android.com |
Optional Tools¶
- VS Code with Flutter extension (alternative to Android Studio)
- Xcode (for iOS development, macOS only)
- Chrome (for web development and debugging)
System Requirements¶
=== "Windows" - Windows 10 or later (64-bit) - Disk Space: 2.8 GB (IDE + SDK) - RAM: 8 GB recommended
=== "macOS" - macOS 10.15 (Catalina) or later - Disk Space: 2.8 GB (IDE + SDK) - RAM: 8 GB recommended - Xcode for iOS development
=== "Linux" - Ubuntu 20.04 or later (or equivalent) - Disk Space: 2.8 GB (IDE + SDK) - RAM: 8 GB recommended
Step 1: Install Flutter¶
Follow the official Flutter installation guide for your operating system:
````powershell # Download Flutter SDK from flutter.dev # Extract to C:\src\flutter # Add to PATH: C:\src\flutter\bin
flutter doctor
```
```bash # Using Homebrew brew install flutter
# Or download from flutter.dev
# Extract and add to PATH
export PATH="$PATH:`pwd`/flutter/bin"
flutter doctor
```
```bash # Download Flutter SDK cd ~/development tar xf ~/Downloads/flutter*linux**.tar.xz
# Add to PATH in ~/.bashrc or ~/.zshrc
export PATH="$PATH:$HOME/development/flutter/bin"
flutter doctor
```
Verify Installation¶
Run flutter doctor to check your installation:
!!! tip "Fix Any Issues"
If `flutter doctor` shows issues, follow the provided instructions to resolve them.
## Step 2: Clone the Repository
Clone the ShopSync repository from GitHub:
```bash
git clone https://github.com/ASDev-Official/ShopSync.git
cd ShopSync
Step 3: Install Dependencies¶
Install all required Dart packages:
This will download all dependencies defined in pubspec.yaml.
Step 4: Configure Firebase¶
ShopSync uses Firebase for authentication and data storage. You'll need to set up your own Firebase project.
See the detailed Firebase Setup Guide for step-by-step instructions.
Quick summary:
- Create a Firebase project
- Enable Authentication (Google Sign-In)
- Create a Firestore database
- Download configuration files:
google-services.jsonfor AndroidGoogleService-Info.plistfor iOS (if applicable)- Add files to the appropriate directories
Step 5: Verify Setup¶
Run the app to verify everything is set up correctly:
# List available devices
flutter devices
# Run on a specific device
flutter run -d <device-id>
# Or let Flutter choose
flutter run
IDE Setup¶
Android Studio¶
-
Install Flutter Plugin
-
Open Android Studio
- Go to Settings → Plugins
- Search for "Flutter"
- Click Install
-
Restart Android Studio
-
Configure Flutter SDK
-
Go to Settings → Languages & Frameworks → Flutter
- Set the Flutter SDK path
-
Click Apply
-
Open Project
- File → Open
- Select the ShopSync directory
- Wait for indexing to complete
VS Code¶
-
Install Extensions
-
Open VS Code
- Install the Flutter extension
-
Install the Dart extension
-
Configure Flutter
-
Press
Cmd+Shift+P(macOS) orCtrl+Shift+P(Windows/Linux) - Type "Flutter: Select Flutter SDK"
-
Select your Flutter SDK path
-
Open Project
- File → Open Folder
- Select the ShopSync directory
Platform-Specific Setup¶
Android Setup¶
- Install Android Studio
Download from developer.android.com
- Install Android SDK
Android Studio will prompt you to install the SDK on first launch.
- Accept Licenses
- Add Configuration Files
Copy google-services.json to:
-
Create a Virtual Device (Optional)
-
Open AVD Manager in Android Studio
- Click Create Virtual Device
- Choose a device definition
- Select a system image
- Click Finish
Web Setup¶
- Enable Web Support
- Verify Chrome Installation
You should see Chrome listed as an available device.
- Run on Web
iOS Setup (macOS only)¶
macOS Required
iOS development requires a macOS computer.
- Install Xcode
Download from the Mac App Store.
- Install Command Line Tools
sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer
sudo xcodebuild -runFirstLaunch
- Accept License
- Add Configuration Files
Copy GoogleService-Info.plist to:
- Install CocoaPods
Building for Production¶
Android APK¶
Output: build/app/outputs/flutter-apk/app-release.apk
Android App Bundle (for Play Store)¶
Output: build/app/outputs/bundle/release/app-release.aab
Web¶
Output: build/web/
Troubleshooting¶
Common Issues¶
Flutter command not found
Make sure Flutter is in your PATH. Run:
If Flutter isn't listed, add it to your shell configuration file.
Android licenses not accepted
Run:
Accept all licenses when prompted.
Firebase configuration missing
Ensure you've completed the Firebase Setup and added the configuration files to the correct directories.
Getting Help¶
If you encounter issues:
- Check the FAQ
- Search existing issues
- Ask in GitHub Discussions
- Create a new issue
Next Steps¶
Now that you have ShopSync installed:
Happy coding!