Skip to content

CogniticCore/Tron-MintyPlay

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

7 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

MintyPlay by CogniticCore ๐ŸŽฎ๐Ÿš€

MintyPlay is a decentralized gaming platform enabling players to earn and own in-game assets as NFTs through blockchain technology. This repository contains both Frontend and Backend codebases, designed for a seamless and immersive gaming experience.


Table of Contents

  1. Frontend Overview

  2. Backend Overview


Frontend Overview ๐ŸŒ

The MintyPlay frontend offers an intuitive interface, enhancing user interaction with the platform.

Getting Started

Ensure you have Node.js and npm/yarn installed. Follow these steps:

  1. Clone the repository.

  2. Install dependencies:

    npm install
    # or
    yarn install
  3. Start the development server:

    npm run dev
    # or
    yarn dev
  4. Access the application at http://localhost:3000.

Key Features

  • User Authentication: Secure login and registration.
  • Responsive UI: Adapts to various screen sizes.
  • NFT Marketplace: Buy, sell, and view NFTs.
  • Game Dashboard: Monitor gameplay statistics and achievements.

Technology Stack

  • Framework: Next.js
  • Styling: CSS Modules, Tailwind CSS
  • State Management: Redux Toolkit
  • API Integration: Axios
  • Deployment: Vercel

Frontend Directory Structure

frontend
โ”‚
โ”œโ”€โ”€ public                        # Static files
โ”œโ”€โ”€ src
โ”‚   โ”œโ”€โ”€ components                # Reusable components
โ”‚   โ”œโ”€โ”€ pages                     # Application pages
โ”‚   โ”œโ”€โ”€ store                     # Redux store
โ”‚   โ”œโ”€โ”€ styles                    # Global styles
โ”‚   โ””โ”€โ”€ utils                     # Utility functions
โ””โ”€โ”€ package.json                  # Project metadata and dependencies

Backend Overview ๐Ÿ› ๏ธ

The MintyPlay backend manages API services, database operations, and blockchain interactions, providing a robust foundation.

Backend Key Features

  • User Management: Tools for user registration and management.
  • Game Management: Upload and monitor games.
  • NFT Minting: Create NFTs on the TRON blockchain.
  • Developer Dashboard: Analyze game performance.
  • API Documentation: Auto-generated via FastAPI.

Backend Technology Stack

  • Framework: FastAPI (Python)
  • Database: MongoDB
  • Blockchain: TRON for NFT minting
  • Containerization: Docker
  • API Documentation: Swagger/OpenAPI via FastAPI

Backend Architecture

The backend is designed for scalability and maintainability, featuring:

  • API Layer: Organized routes by feature.
  • Core Logic: Database and blockchain operations.
  • Models: Database schema representations.
  • Services: Business logic for users and NFTs.
  • Schemas: Data validation with Pydantic.
  • Utilities: Helper functions for application functionality.

Prerequisites โœ…

  • Docker: Install Docker.
  • TRON Wallet: Required for NFT operations.
  • Python: Necessary if running without Docker.

Running the Backend Application

  1. Ensure Docker is installed.

  2. Start the Docker containers:

    docker compose up
  3. Access the application at:

  4. To stop Docker:

    docker compose down

Backend Directory Structure

backend
โ”‚
โ”œโ”€โ”€ .env                         # Environment variables for configuration
โ”œโ”€โ”€ .gitignore                   # Specifies files to ignore in version control
โ”œโ”€โ”€ docker-compose.yml           # Docker Compose file for defining and running multi-container Docker applications
โ”œโ”€โ”€ Dockerfile                   # Instructions for building the Docker image
โ”œโ”€โ”€ README.md                    # Documentation for the project
โ”œโ”€โ”€ requirements.txt             # List of dependencies required for the project
โ”‚
โ””โ”€โ”€ /app                         # Main application directory
    โ”‚   main.py                  # Entry point of the application
    โ”‚
    โ”œโ”€โ”€ /api                     # Contains all API routes
    โ”‚   โ””โ”€โ”€ /v1                  # API version 1
    โ”‚       โ”‚   v1.py            # Main logic for API version 1
    โ”‚       โ”‚
    โ”‚       โ””โ”€โ”€ /endpoints       # API endpoints grouped by feature
    โ”‚
    โ”œโ”€โ”€ /core                    # Core application logic and utilities
    โ”‚
    โ”œโ”€โ”€ /exceptions              # Custom exceptions for the application
    โ”‚
    โ”œโ”€โ”€ /models                  # Data models for the application
    โ”‚
    โ”œโ”€โ”€ /schemas                 # Pydantic schemas for data validation
    โ”‚
    โ”œโ”€โ”€ /services                 # Business logic and service layer
    โ”‚
    โ””โ”€โ”€ /utils                     # Utility functions for the application
        โ””โ”€โ”€ /helper                # Helper functions organized in a separate directory

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •