GithubHelp home page GithubHelp logo

kucingnft's Introduction

kucingNFT

#Simple Web frontend & Backend with Python

Get Testnet BNB from Faucet: https://testnet.binance.org/faucet-smart/

#Simple minting the NFT to other address https://testnet.bscscan.com/token/0x7391dd5a7a021e3bf1bf26b472d1024088f0c109

How to Test:

  1. Setup your Wallet with metamask,
  2. Create Network for testnet
  3. Running server :
    • cd backend
    • python3 app.py
    • make sure you had setup the config.json
    • rename from config.json.example into config.json

How to access: http://kucingliar.xyz:8083

CREATE DATABASES kucingnft;
CREATE TABLE cats (
    id INT UNSIGNED AUTO_INCREMENT PRIMARY KEY,
    tokenId int,
    address VARCHAR(255) NULL,
    color VARCHAR(255) NULL,
    image VARCHAR(255) NULL,
    rarity int,
    level int,
    skills text,
    created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
    deleted_at TIMESTAMP NULL DEFAULT NULL
);


CREATE TABLE transactions (
    id INT UNSIGNED AUTO_INCREMENT PRIMARY KEY,
    address VARCHAR(255) NULL,
    block_hash text,
    created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
    deleted_at TIMESTAMP NULL DEFAULT NULL
);

Sample query:
INSERT INTO cats SET address='0xb2a18Cee119430f1a86964fbC7eEB99A4496ABB0', tokenId=15, color='brown', image='http://68.183.190.243:8083/images/type001.png', rarity=1, level=0, skills='["wisdom", "support"]', created_at=now();
INSERT INTO transactions SET address='0xb2a18Cee119430f1a86964fbC7eEB99A4496ABB0', block_hash='0x77af8473ec8f067e439a1f306324c0dc7f979ca7cdde60a0b6c80f3082eb4603', created_at=now();

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.