Skip to main content

Getting Started with SophiChain

Your Guide to Building on SophiChain

Welcome! This guide will help you get up and running with SophiChain quickly.


๐Ÿ“‹ Prerequisitesโ€‹

Before you begin, ensure you have:

Required Softwareโ€‹

Required Servicesโ€‹

  • โœ… MongoDB 7.0+ - For document storage
  • โœ… SQL Server 2022+ or PostgreSQL 15+ - For transactional data
  • ๐Ÿ’ก Visual Studio 2022 or VS Code with C# extension
  • ๐Ÿ’ก MongoDB Compass - For database management
  • ๐Ÿ’ก Postman or Insomnia - For API testing

๐Ÿš€ Quick Start (5 Minutes)โ€‹

Step 1: Clone the Repositoryโ€‹

git clone https://github.com/sophichain.git
cd sophichain

Step 2: Start Infrastructure with Dockerโ€‹

# Start MongoDB and SQL Server
docker-compose up -d

# Verify services are running
docker ps

Step 3: Configure Connection Stringsโ€‹

Edit hosts/b2host/src/SophiChain.B2Host.Blazor/appsettings.json:

{
"ConnectionStrings": {
"Default": "Server=localhost;Database=SophiChain;User Id=sa;Password=YourPassword123!;TrustServerCertificate=true",
"MongoDB": "mongodb://localhost:27017/SophiChain"
}
}

Step 4: Run Database Migrationsโ€‹

cd hosts/b2host/src/SophiChain.B2Host.DbMigrator
dotnet run

Step 5: Start the Applicationโ€‹

cd ../SophiChain.B2Host.Blazor
dotnet run

Step 6: Open Your Browserโ€‹

Navigate to: https://localhost:44300

Default Credentials:

  • Username: admin
  • Password: 1q2w3E*

๐ŸŽฏ What's Next?โ€‹

For Business Usersโ€‹

  1. Explore FinanceHub - Understand payment capabilities
  2. Review Use Cases - See real-world scenarios
  3. Plan Your Implementation (Coming Soon)

For Developersโ€‹

  1. Architecture Overview (Coming Soon) - Understand the system design
  2. FinanceHub Deep Dive - Learn implementation patterns
  3. Build Your First Module (Coming Soon)
  4. API Reference (Coming Soon)

For DevOpsโ€‹

  1. Docker Deployment (Coming Soon)
  2. Kubernetes Setup (Coming Soon)
  3. Monitoring & Logging (Coming Soon)

๐Ÿ“š Detailed Setup Guidesโ€‹

Option 1: Development Environment (Coming Soon)โ€‹

Full local development setup with all services.

Option 2: Docker Compose (Coming Soon)โ€‹

Containerized development environment.

Option 3: Cloud Deployment (Coming Soon)โ€‹

Deploy to Azure, AWS, or ArvanCloud.


๐Ÿ”ง Configurationโ€‹

Module Configuration (Coming Soon)โ€‹

How to enable/disable specific modules.

Multi-Tenancy Setup (Coming Soon)โ€‹

Configure tenant isolation and management.

Payment Gateway Configuration (Coming Soon)โ€‹

Set up Stripe, PayPal, ZarinPal, etc.

AI Services Configuration (Coming Soon)โ€‹

Connect OpenAI, DeepSeek, or local models.


๐Ÿงช Running Testsโ€‹

# Run all tests
dotnet test

# Run specific module tests
cd modules/sophichain.financehub/test
dotnet test

# Run with coverage
dotnet test --collect:"XPlat Code Coverage"

๐Ÿ› Troubleshootingโ€‹

Common Issues (Coming Soon)โ€‹

Solutions to frequently encountered problems.

Database Connection Issues (Coming Soon)โ€‹

Fix connection string problems.

Port Conflicts (Coming Soon)โ€‹

Resolve port binding issues.


๐Ÿ’ก Learning Resourcesโ€‹

Video Tutorials (Coming Soon)โ€‹

  • Getting Started (10 min)
  • Building Your First Module (30 min)
  • Payment Integration (20 min)

Sample Projects (Coming Soon)โ€‹

  • Simple Blog with Payments
  • E-commerce Store
  • SaaS Application

Communityโ€‹


๐Ÿค Need Help?โ€‹


โœ… Next Steps Checklistโ€‹

After completing this guide, you should:

  • Have SophiChain running locally
  • Understand the module structure
  • Know where to find documentation
  • Be ready to integrate or extend

Ready to dive deeper? Choose your path:


Last Updated: October 7, 2025
Guide Version: 1.0