Skip to content

Add developer setup guides and update README #2917

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

izeon123r
Copy link

@izeon123r izeon123r commented May 28, 2025

Summary

This PR adds comprehensive setup guides for developers working with VirtoCommerce:

  • DEVELOPER_SETUP.md: Step-by-step platform setup with troubleshooting
  • FRONTEND_SETUP.md: Complete Vue.js storefront setup guide
  • README.md: Updated to reference both setup guides

Benefits

  • Addresses common setup issues and pitfalls
  • Provides clear instructions for both backend and frontend
  • Improves developer onboarding experience
    Image tag:
    ghcr.io/VirtoCommerce/platform:3.890.0-pr-2917-db2f-add-developer-setup-guides-db2fbfa6

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


Developer seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

@vc-ci
Copy link
Contributor

vc-ci commented May 28, 2025

Reveiw task created: https://virtocommerce.atlassian.net/browse/VCST-3364

Copy link

Copy link
Contributor

@vc-ci vc-ci left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test Suite: Test Suites/Modules/module_Assets
Tests: 13
Failures: 0
Errors: 0
Time: 7.986
Timestamp: 28-05-2025T14:29:53


### Issue 1: "Unable to run your project" (Docker Compose Error)
**Problem**: Running `dotnet run` from wrong directory shows Docker Compose error
**Cause**: VirtoCommerce has multiple projects; running from root triggers Docker Compose mode
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Virto Commerce Platform has multiple projects...

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This one is for proper LLM index, otherwise it will mix up folders to run from

2. **Configure backend connection:**
```bash
# Create .env file with correct backend URL
echo APP_BACKEND_URL=http://localhost:10645 > .env
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using .env.local is better

Comment on lines +173 to +176
```bash
# Find and kill the process using the port
netstat -ano | findstr ":10645"
Stop-Process -Id <ProcessId> -Force
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stop-Process is a PowerShell command, so probably you should replace bash with powershell everywhere

```

**Option B: Local SQL Server**
Update `appsettings.Development.json`:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changing platform files is not recommended. Instead, you should use user secrets or environment variables.

Comment on lines +334 to +340
# Copy built files
Copy-Item "src\VirtoCommerce.McpServer.Web\bin\Debug\net8.0\*" "D:\work\vc-platform\modules\VirtoCommerce.McpServer" -Recurse -Force

# Copy essential module files
Copy-Item "src\VirtoCommerce.McpServer.Web\module.manifest" "D:\work\vc-platform\modules\VirtoCommerce.McpServer\" -Force
New-Item -ItemType Directory -Path "D:\work\vc-platform\modules\VirtoCommerce.McpServer\Scripts" -Force
Copy-Item "src\VirtoCommerce.McpServer.Web\Scripts\*" "D:\work\vc-platform\modules\VirtoCommerce.McpServer\Scripts\" -Recurse -Force
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is too complicated. A better way is cloning right into vc-platform\modules or creating a link with mklink

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants