DiceMatrix API Hub

🧊 DiceMatrix API Hub

Welcome to the DiceMatrix API – a custom backend tailored for Dice | Mods and Donnie’s Portfolio. The API provides seamless, structured data endpoints to support live updates on both mods.dicematrix.cloud and donnie.dicematrix.cloud. This landing page serves as a documentation guide and an example of cohesive API design and frontend integration.


šŸš€ API Purpose and Structure

šŸ”¹ Mods Matrix

The Dice | Mods page uses the API to populate mod data, making it easy to add, update, or remove mods and their details without manual changes on the frontend. This modularity is ideal for presenting dynamic content in real time.

šŸ”¹ Donnie’s Portfolio

Donnie’s portfolio relies on the Donnie API endpoint to present personal projects, with live updates on project statuses, descriptions, and tech stacks. This API-driven content management approach streamlines the portfolio's upkeep and allows showcasing of recent work effortlessly.


šŸ“š API Documentation and Usage

All requests to this API are read-only at this stage, retrieving JSON data for integration into the specified sites. No API keys or tokens are currently required for access.

Base URL

https://api.dicematrix.cloud/api

Available Endpoints

Each endpoint below serves a specific data structure, optimized for integration with Mods Matrix or Donnie’s Portfolio.

Mods API

Provides mod details for the mods.dicematrix.cloud page.

Donnie API

Supports donnie.dicematrix.cloud by providing structured data for Donnie’s personal project portfolio.


šŸ›  Implementation Guide

Dice | Mods Integration

  1. API Call: Use a GET request to /api/mods to retrieve mod data.
  2. Data Handling: Loop through the JSON response, mapping each mod’s properties (e.g., name, version) to display elements.
  3. Example Code (JavaScript):
    fetch('https://api.dicematrix.cloud/api/mods')
      .then(response => response.json())
      .then(data => {
        data.forEach(mod => {
          // Inject mod data into HTML elements, e.g., title, description
          console.log(`Mod: ${mod.name}, Version: ${mod.version}`);
        });
      });
    

Portfolio Integration on Donnie’s Site

  1. API Call: Send a GET request to /api/donnie to retrieve live project details.
  2. Dynamic Display: Render each project’s details on the portfolio page by mapping JSON properties to display elements.
  3. Example Code (JavaScript):
    fetch('https://api.dicematrix.cloud/api/donnie')
      .then(response => response.json())
      .then(data => {
        data.forEach(project => {
          // Dynamically insert project details into the portfolio page
          console.log(`Project: ${project.projectName}, Status: ${project.status}`);
        });
      });
    

🌌 API Features and Design Highlights


šŸ” Technical Implementation Details

The DiceMatrix API is built using Node.js with Express.js for routing and MongoDB for data storage. This stack enables robust data handling, seamless updates, and easy scalability. It also follows RESTful principles to ensure clarity in design.

Example Config (Nginx): To route the API efficiently, use location blocks that define paths for /api/mods and /api/donnie, pointing to the correct backend services.


šŸ“¬ Support & Further Information

For further inquiries, technical issues, or feedback on the API, reach out via the following:

Elevate your portfolio and projects with the efficient, modular, and visually appealing DiceMatrix API. 🌐