Skip to content

Commit

Permalink
Initial commit with deployment configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
Mookth789 committed Dec 21, 2024
0 parents commit d3cd3fe
Show file tree
Hide file tree
Showing 667 changed files with 175,654 additions and 0 deletions.
54 changes: 54 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: Deploy Dropship Platform

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
build-and-deploy:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1

- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push Frontend
uses: docker/build-push-action@v2
with:
context: ./dropship-frontend
push: true
tags: ghcr.io/${{ github.repository }}/frontend:latest

- name: Build and push Backend
uses: docker/build-push-action@v2
with:
context: ./dropship-backend
push: true
tags: ghcr.io/${{ github.repository }}/backend:latest

- name: Deploy to server
if: github.ref == 'refs/heads/main'
env:
DEPLOY_KEY: ${{ secrets.DEPLOY_KEY }}
DEPLOY_HOST: ${{ secrets.DEPLOY_HOST }}
DEPLOY_USER: ${{ secrets.DEPLOY_USER }}
run: |
mkdir -p ~/.ssh
echo "$DEPLOY_KEY" > ~/.ssh/deploy_key
chmod 600 ~/.ssh/deploy_key
ssh -i ~/.ssh/deploy_key -o StrictHostKeyChecking=no $DEPLOY_USER@$DEPLOY_HOST '
cd /opt/dropship &&
docker-compose pull &&
docker-compose up -d
'
49 changes: 49 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# Dependencies
node_modules/
**/node_modules/

# Environment files
.env
**/.env
.env.local
.env.*.local

# Build files
**/build/
**/dist/
**/.next/

# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Testing
coverage/

# IDE
.idea/
.vscode/
*.swp
*.swo

# OS
.DS_Store
Thumbs.db

# Docker
.docker/

# MongoDB data
data/db/

# Redis data
dump.rdb
264 changes: 264 additions & 0 deletions ADMIN_GUIDE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,264 @@
# Admin Guide - Dropship Platform

## Administrative Dashboard Overview

### 1. Navigation
- **Dashboard**: Main overview and statistics
- **Products**: Manage product catalog
- **Orders**: Order processing and management
- **Customers**: Customer information and management
- **Analytics**: Performance metrics and reports
- **Automation**: AI-driven automation settings
- **Settings**: System configuration

### 2. Key Features

#### Product Management
1. Adding Products
- Import from AliExpress
- Bulk import via CSV/JSON
- Manual product creation

2. Price Management
- AI-driven price optimization
- Bulk price updates
- Price rules configuration

3. Inventory Management
- Stock level monitoring
- Auto-reorder settings
- Supplier management

#### Order Processing
1. Order Workflow
- New orders
- Processing
- Shipping
- Completed
- Cancelled/Refunded

2. Automation Settings
- Auto-order processing
- Shipping updates
- Customer notifications

#### Customer Management
1. Customer Data
- Profile information
- Order history
- Communication logs
- Support tickets

2. Customer Segmentation
- AI-driven segmentation
- Custom segments
- Marketing targeting

#### Analytics & Reporting
1. Real-time Analytics
- Sales metrics
- Traffic data
- Conversion rates
- Customer behavior

2. Report Generation
- Custom reports
- Scheduled reports
- Export options

#### Security Management
1. Access Control
- User roles
- Permission settings
- Activity logs
- Security alerts

2. System Security
- Backup management
- Security settings
- Audit logs

### 3. AI Features Guide

#### Price Optimization
1. Configuration
- Set target profit margins
- Configure competitor tracking
- Define price update frequency
- Set price change limits

2. Monitoring
- View price change history
- Monitor competitor prices
- Track profit margins
- Analyze market trends

#### Inventory Management
1. Auto-Reorder Settings
- Set minimum stock levels
- Configure reorder quantities
- Define supplier preferences
- Set budget limits

2. Stock Prediction
- View demand forecasts
- Monitor seasonal trends
- Track stock levels
- Analyze sales patterns

#### Marketing Automation
1. Campaign Management
- Set campaign rules
- Configure targeting
- Schedule content
- Monitor performance

2. Content Generation
- Configure content types
- Set brand guidelines
- Review generated content
- Track engagement

### 4. Daily Operations Guide

#### Morning Checklist
1. System Health Check
- Review system status
- Check error logs
- Monitor performance
- Verify backups

2. Business Operations
- Process new orders
- Check inventory levels
- Review customer support
- Monitor sales

#### Order Management
1. Processing Orders
- Review new orders
- Verify payments
- Update shipping status
- Handle issues

2. Customer Communication
- Respond to inquiries
- Send notifications
- Handle complaints
- Follow up on feedback

### 5. Security Procedures

#### Access Management
1. User Administration
- Create user accounts
- Assign roles
- Set permissions
- Monitor activity

2. Security Monitoring
- Review security logs
- Check alerts
- Monitor access attempts
- Track changes

#### Data Protection
1. Backup Management
- Schedule backups
- Verify backup integrity
- Test restoration
- Manage storage

2. Security Settings
- Configure 2FA
- Set password policies
- Manage API keys
- Configure firewalls

### 6. Troubleshooting Guide

#### Common Issues
1. Order Issues
- Payment failures
- Shipping delays
- Inventory sync
- Customer complaints

2. System Issues
- Performance problems
- Integration errors
- Sync failures
- API issues

#### Resolution Steps
1. Order Problems
- Check order status
- Verify payment
- Contact supplier
- Update customer

2. System Problems
- Check logs
- Restart services
- Clear cache
- Contact support

### 7. Maintenance Procedures

#### Regular Maintenance
1. Daily Tasks
- Monitor system health
- Process orders
- Update inventory
- Check notifications

2. Weekly Tasks
- Review analytics
- Generate reports
- Update content
- Check backups

#### System Updates
1. Update Process
- Schedule maintenance
- Backup system
- Apply updates
- Test functionality

2. Verification Steps
- Check core features
- Verify integrations
- Test automation
- Monitor performance

### 8. Support Resources

#### Documentation
- System documentation
- API references
- Integration guides
- User manuals

#### Support Channels
- Technical support
- Customer service
- Emergency contacts
- Training resources

### Quick Reference

#### Important URLs
- Admin Dashboard: admin.dropship-platform.com
- Support Portal: support.dropship-platform.com
- Documentation: docs.dropship-platform.com

#### Emergency Contacts
- Technical Support: [email protected]
- Security Team: [email protected]
- Emergency Hotline: +1-XXX-XXX-XXXX

#### System Requirements
- Modern web browser (Chrome, Firefox, Safari)
- Stable internet connection
- Minimum screen resolution: 1366x768
- Required permissions and access rights
Loading

0 comments on commit d3cd3fe

Please sign in to comment.