Skip to content

exit-cafe/templa-box

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

10 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

TemplaBox Logo

🌟 Overview

TemplaBox is a game template service that allows creators to release games within a day without the need for developers.

With TemplaBox, even non-engineers can create games incredibly quickly. The development time is drastically reduced, allowing you to create your own original game in just one day.

TemplaBox Example Game

Game creation can be done and edited directly through the website, allowing for intuitive game production. Additionally, various game templates are provided.

Game Template Example


βš™οΈ System Overview

The service is built with four servers, ensuring high performance and scalability.

System Architecture

Server Name Role
Office-Console For game creators
Store-Office Game system
Store-Front For game players
Factory NFT issuance/retrieval

πŸ› οΈ System Details

System Architecture

System Architecture

System Architecture

System Architecture

System Requirements

  • Node.js v20.12.2
  • npm 10.5.0

Setup and Startup

  1. Clone from GitHub:
    git clone https://github.com/exit-cafe/templa-box.git
    cd templa-box
  2. Set up npm:
npm install
  1. Start the WebAPI server:
node index.js

🌐 WebAPI

πŸ–ΌοΈ Create CoreNFT

  • POST : /nft
  • URL: http://localhost:3000/nft

πŸ“₯ Request Body
Parameter Description Type Default Value Required Example
collection Public key of the collection String Null Go3mzTv7bP9X5cafRCxuoGTfmc4iXgNJfDgo48ZSAjDm
name Name String βœ… Mountains Veiled in Mist and Light.
file File path String βœ… ./image.png
description Description String Null The image depicts a scenic landscape...
attributes Attributes Array Null ["mountain", "green", "blue", "tree"]
external_url External URL String Null https://scannner.io

πŸ“€ Response
Parameter Description Type Example
status Whether the operation succeeded Boolean true

πŸ§‘β€πŸ’» Example

curl --location 'http://localhost:3000/nft' \
--header 'Content-Type: application/json' \
--data '{
    "collection" : "Go3mzTv7bP9X5cafRCxuoGTfmc4iXgNJfDgo48ZSAjDm",
    "name" : "Mountains Veiled in Mist and Light.",
    "file" : "./image.png",
    "description" : "The image depicts a scenic landscape...",
    "attributes" : ["mountain", "green", "blue", "tree"],
    "external_url" : "https://scannner.io"
}'

πŸ—‚οΈ Create Collection

  • POST : /collection
  • URL: http://localhost:3000/collection

πŸ“₯ Request Body
Parameter Description Type Default Value Required Example
name Name String βœ… Card List

πŸ“€ Response
Parameter Description Type Example
status Whether it succeeded Boolean true
collection.publicKey Collection public key String GQWfkmyaEoskw8eXhzhzWYwUi5ET3yMgfFSAqsyThvTq
collection.signature Collection signature String 5NNGh875f5Bz4uf7WvLyP1Kf2u3gvMVddGYdvdWLnpnpWjaikZey2omuwzgzWHNWCjBfZHXiuEMtLCDUUzn22xKb
collection.name Name String Card List

πŸ§‘β€πŸ’» Example

curl --location 'http://localhost:3000/collection' \
--header 'Content-Type: application/json' \
--data '{
    "name": "Card List"
}'

πŸ”„ Add Existing NFT to Collection

  • PUT : /nft/verify
  • URL: http://localhost:3000/nft/verify

πŸ“₯ Request Body
Parameter Description Type Default Value Required Example
collectionMint Public key of the collection String βœ… GQWfkmyaEoskw8eXhzhzWYwUi5ET3yMgfFSAqsyThvTq
contentMint Public key of the content String βœ… FBWndhC4Ch5VG6vooEKp3UvUtjXQFtv4UNdkjmdRQh7N

πŸ“€ Response
Parameter Description Type Example
status Whether the operation succeeded Boolean true

πŸ§‘β€πŸ’» Example

curl --location --request PUT 'http://localhost:3000/nft/verify' \
--header 'Content-Type: application/json' \
--data '{
    "collectionMint": "GQWfkmyaEoskw8eXhzhzWYwUi5ET3yMgfFSAqsyThvTq",
    "contentMint": "FBWndhC4Ch5VG6vooEKp3UvUtjXQFtv4UNdkjmdRQh7N"
}'

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •