Skip to content

Repository files navigation

ShopMall - Pi Network 2025 Hackathon Project

A modern ecommerce platform for goods and services with Pi Network payments integration.

Pi Network 2025 Hackathon Compliance

This application is built in full compliance with Pi Network 2025 Hackathon standards:

Authentication

  • Only Pi Network OAuth: Users authenticate exclusively through Pi Network OAuth
  • No traditional authentication: Regular login/signup forms are disabled
  • Pi UID tracking: Pi Network User ID is securely stored in user profiles

User Data Handling

  • Minimal data collection: Only essential information collected per Pi guidelines
  • Privacy compliance: All data handling follows Pi Network privacy standards
  • Secure storage: User data encrypted and stored securely

Payment Integration

  • Pi SDK integration: Payments use official Pi Network SDK
  • Secure transactions: All payment flows follow Pi Network security standards
  • Transaction tracking: Payment IDs and details properly recorded

App Standards

  • Pi Network branding: Follows Pi Network design and UX guidelines
  • User experience: Optimized for Pi Network ecosystem
  • Security: Implements all required security measures

Features

  • Product Catalog: Browse products with categories and search
  • Shopping Cart: Session-based cart management
  • Pi Network OAuth: Secure authentication through Pi Network
  • User Profiles: Profile management with Pi UID tracking
  • Order Management: Complete order tracking with Pi payments
  • Address Management: Shipping address management
  • Product Reviews: User review system
  • Analytics Dashboard: Admin analytics (superuser only)

Setup Instructions

  1. Install dependencies:

    pip install -r requirements.txt
  2. Configure Pi Network OAuth:

    • Register your app at Pi Network Developer Portal
    • Update SOCIAL_AUTH_PI_KEY and SOCIAL_AUTH_PI_SECRET in shopmall/settings.py
  3. Run migrations:

    python manage.py migrate
  4. Create superuser (for admin access):

    python manage.py createsuperuser
  5. Start development server:

    python manage.py runserver

Pi Network Integration

  • OAuth Login: /social-auth/login/pi/
  • Payment Processing: Uses Pi SDK for secure payments
  • User Profile: Stores Pi UID for compliance
  • Data Privacy: Minimal data collection per Pi standards

Security Features

  • CSRF protection on all forms
  • Secure session management
  • HTTPS enforcement for production
  • Minimal data exposure
  • Secure Pi Network integration

Production Deployment

For production deployment:

  1. Set DEBUG = False in settings.py
  2. Configure ALLOWED_HOSTS with your domain
  3. Set up HTTPS (required for Pi Network)
  4. Use production database (PostgreSQL recommended)
  5. Configure email settings for notifications
  6. Set up proper static/media file serving
  7. Configure SECURE_SSL_REDIRECT = True
  8. Set secure cookie settings

Pi Network App Configuration

Make sure to configure your Pi Network app with:

  • Correct redirect URIs
  • Proper scopes (username, email)
  • HTTPS callback URLs for production

Contributing

This project follows Pi Network 2025 Hackathon guidelines. All contributions must maintain Pi Network compliance standards.

About

an modern ecommerce for goods and services with pi payments integrated

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages