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.
Game creation can be done and edited directly through the website, allowing for intuitive game production. Additionally, various game templates are provided.
The service is built with four servers, ensuring high performance and scalability.
| Server Name | Role |
|---|---|
| Office-Console | For game creators |
| Store-Office | Game system |
| Store-Front | For game players |
| Factory | NFT issuance/retrieval |
- Node.js v20.12.2
- npm 10.5.0
- Clone from GitHub:
git clone https://github.com/exit-cafe/templa-box.git cd templa-box - Set up npm:
npm install- Start the WebAPI server:
node index.js- POST :
/nft - URL:
http://localhost:3000/nft
| 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 |
| Parameter | Description | Type | Example |
|---|---|---|---|
| status | Whether the operation succeeded | Boolean | true |
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"
}'- POST :
/collection - URL:
http://localhost:3000/collection
| Parameter | Description | Type | Default Value | Required | Example |
|---|---|---|---|---|---|
| name | Name | String | β | Card List |
| 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 |
curl --location 'http://localhost:3000/collection' \
--header 'Content-Type: application/json' \
--data '{
"name": "Card List"
}'
- PUT :
/nft/verify - URL:
http://localhost:3000/nft/verify
| Parameter | Description | Type | Default Value | Required | Example |
|---|---|---|---|---|---|
| collectionMint | Public key of the collection | String | β | GQWfkmyaEoskw8eXhzhzWYwUi5ET3yMgfFSAqsyThvTq |
|
| contentMint | Public key of the content | String | β | FBWndhC4Ch5VG6vooEKp3UvUtjXQFtv4UNdkjmdRQh7N |
| Parameter | Description | Type | Example |
|---|---|---|---|
| status | Whether the operation succeeded | Boolean | true |
curl --location --request PUT 'http://localhost:3000/nft/verify' \
--header 'Content-Type: application/json' \
--data '{
"collectionMint": "GQWfkmyaEoskw8eXhzhzWYwUi5ET3yMgfFSAqsyThvTq",
"contentMint": "FBWndhC4Ch5VG6vooEKp3UvUtjXQFtv4UNdkjmdRQh7N"
}'