Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/Mercaline2024/Ecomdrop-ia-connector-2/llms.txt

Use this file to discover all available pages before exploring further.

Prerequisites

Before installing the Ecomdrop IA Connector, ensure you have the following prerequisites installed and configured:

Required Software

1

Node.js 20.19+ or 22.12+

The application requires Node.js version 20.19 or higher, or version 22.12 or higher.Download and Install:
  • Visit nodejs.org
  • Download the LTS version for your operating system
  • Follow the installation instructions
Verify Installation:
node --version
# Should output: v20.19.0 or higher, or v22.12.0 or higher

npm --version
# Should output: 10.x.x or higher
2

Shopify CLI

The Shopify CLI is required for local development, app deployment, and managing Shopify app configuration.Install Globally:
npm install -g @shopify/cli@latest
Verify Installation:
shopify version
# Should output the installed version
If you encounter permission errors on macOS/Linux, you may need to use sudo or configure npm to install global packages without sudo.
3

MySQL 8.0

The application uses MySQL 8.0 as the production database with Prisma ORM.Installation Options:
brew install mysql@8.0
brew services start mysql@8.0
Verify Installation:
mysql --version
# Should output: mysql Ver 8.0.x
4

Git

Git is required to clone the repository.Install Git:
  • Visit git-scm.com
  • Download and install for your operating system
Verify Installation:
git --version
# Should output: git version 2.x.x or higher

Shopify Requirements

1

Shopify Partner Account

You need a Shopify Partner account to create and manage Shopify apps.Create Account:
  1. Visit partners.shopify.com/signup
  2. Fill out the registration form
  3. Verify your email address
  4. Complete your partner profile
2

Development Store

A development store is required to test your Shopify app.Create Development Store:
  1. Log in to your Shopify Partners Dashboard
  2. Navigate to Stores > Add store
  3. Select Development store
  4. Choose a store type (Development store or Shopify Plus sandbox)
  5. Fill in the store details and create
Development stores are free and include all Shopify features for testing purposes.

Installation

1

Clone the Repository

Clone the Ecomdrop IA Connector repository to your local machine:
git clone <repository-url>
cd ecomdrop-ia-connector
Replace <repository-url> with the actual repository URL provided by your team.
2

Install Dependencies

Install all required npm packages:
npm install
This will install all dependencies defined in package.json, including:Core Dependencies:
  • @shopify/shopify-app-react-router - Shopify app framework
  • @prisma/client - Database ORM
  • react-router v7 - Modern routing and data loading
  • mysql2 - MySQL database driver
UI Libraries:
  • @radix-ui/* - Accessible component primitives
  • tailwindcss - Utility-first CSS framework
  • lucide-react - Icon library
Development Tools:
  • typescript - Type safety
  • vite - Fast build tool
  • eslint - Code linting
  • prettier - Code formatting
The installation may take several minutes depending on your internet connection.
3

Verify Installation

Verify that all dependencies were installed correctly:
npm list --depth=0
You should see a list of all installed packages without any errors.Check for Vulnerabilities:
npm audit
If there are any vulnerabilities, you can attempt to fix them:
npm audit fix

Project Structure

After installation, your project structure should look like this:
ecomdrop-ia-connector/
├── app/
│   ├── components/          # React components
│   │   ├── ui/             # shadcn/ui components
│   │   └── modals/         # Custom modal components
│   ├── lib/                # Utility functions and API clients
│   ├── routes/             # React Router routes
│   └── shopify.server.ts   # Shopify authentication
├── prisma/
│   ├── schema.prisma       # Database schema (MySQL)
│   └── migrations/         # Database migrations
├── public/                 # Static assets
├── node_modules/           # Installed dependencies
├── Dockerfile              # Production Docker image
├── docker-compose.yml      # Docker Compose configuration
├── package.json            # Dependencies and scripts
├── tsconfig.json           # TypeScript configuration
├── tailwind.config.ts      # Tailwind CSS configuration
├── vite.config.ts          # Vite build configuration
└── shopify.app.toml        # Shopify app configuration

Available Scripts

After installation, you have access to these npm scripts:
# Start development server with Shopify CLI
npm run dev

# Type check TypeScript files
npm run typecheck

# Lint code with ESLint
npm run lint

Next Steps

Now that you have installed the Ecomdrop IA Connector, proceed to:

Environment Setup

Configure environment variables and Shopify API credentials

Database Setup

Set up MySQL database and run Prisma migrations

Quickstart Guide

Get the app running in minutes with a fast-track setup

Development Guide

Learn about the development workflow and best practices

Troubleshooting

Node.js Version Mismatch

If you get an error about Node.js version:
error ecomdrop-ia-connector@1.0.0: The engine "node" is incompatible with this module.
Solution: Install the correct Node.js version (20.19+ or 22.12+)

npm install Fails

If npm install fails with permission errors: macOS/Linux:
sudo chown -R $(whoami) ~/.npm
sudo chown -R $(whoami) /usr/local/lib/node_modules
Windows: Run your terminal as Administrator

Shopify CLI Not Found

If shopify command is not recognized:
# Reinstall Shopify CLI globally
npm install -g @shopify/cli@latest

# Verify PATH includes npm global bin directory
echo $PATH
For more troubleshooting help, see the main README or contact your development team.

Build docs developers (and LLMs) love