Configuration Guide
How to connect your app to your website and customize basic settings.
Connect to Your Website
Step 1: Find Your Website URL
Your website URL is the address people use to visit your online store. Examples:
https://mystore.comhttps://shop.mycompany.comhttps://mystore.botble.com
Step 2: Update App Configuration
- Open the
.envfile in your app folder - Update these settings:env
APP_API_URL=https://your-website.com/api/v1 APP_SITE_URL=https://your-website.com APP_NAME=Your Store Name - Save the file
Step 3: Test the Connection
- Run your app:bash
npm start - Try to login with an account from your website
- If it works, you're connected!
Environment Configuration
Create or update your .env file with these settings:
env
# API Configuration
APP_API_URL=https://your-website.com/api/v1
APP_SITE_URL=https://your-website.com
# App Configuration
APP_NAME=Your Store Name
APP_VERSION=1.0.0
# Contact Information (optional)
APP_CONTACT_PHONE=+1 (800) 123-4567
[email protected]
# Social Media (optional)
APP_SOCIAL_FACEBOOK=https://facebook.com/yourstore
APP_SOCIAL_X=https://x.com/yourstore
APP_SOCIAL_INSTAGRAM=https://instagram.com/yourstoreApp Configuration (app.config.ts)
The app reads configuration from environment variables through app.config.ts. Update your .env file for app store settings:
| Variable | Description | Example |
|---|---|---|
| APP_NAME | Display name | My Store |
| APP_VERSION | App version | 1.0.0 |
| APP_API_URL | API endpoint | https://mystore.com/api/v1 |
| APP_SITE_URL | Website URL | https://mystore.com |
For bundle identifiers and other platform-specific settings, modify app.config.ts directly.
Basic App Settings
App Name
Change your app's name by following: App Name Guide
App Colors
Customize your app's colors: Theme Colors Guide
App Logo
Add your logo: App Logo Guide
Languages
Set up multiple languages: Translations Guide
Security Settings
HTTPS Required
- Always use
https://in your website URL - Never use
http://for live websites - This keeps your customers' data safe
API Access
Make sure your website allows the app to connect:
- Contact your website developer
- Tell them you need "API access enabled"
- Verify CORS settings allow mobile app requests
Testing Your Setup
Test These Features:
- Login with existing account
- Browse products
- Add items to cart
- Search for products
- View product details
- Apply coupon codes
- Complete checkout
If Something Doesn't Work:
- Check your website URL is correct
- Make sure your website is online
- Try logging in on your website directly
- Check browser console for errors
- Contact support with details
Advanced Configuration
For more advanced setup:
- API Integration - Technical details
- Development Guide - Customization options
Tips for Success
Before Going Live:
- Test everything thoroughly
- Try on different phones (iOS and Android)
- Ask friends to test the app
- Make sure payments work
Keep It Simple:
- Start with basic setup
- Add features gradually
- Test each change
- Don't change too many things at once
Common Problems
"Connection Failed"
- Check your website URL
- Make sure website is online
- Verify API is accessible
"Login Doesn't Work"
- Test login on your website first
- Check if API is enabled
- Verify user accounts exist
"No Products Show"
- Make sure products exist on website
- Check if products are published
- Verify categories are set up
For more help, check the Troubleshooting Guide.
