This app is a basic NFT blockchain app build using the Lisk SDK
Follow this steps to install & run the app:
-
Clone the repo on your local machine by running on your terminal:
$ g clone https://github.com/ClementeSerrano/nft-app.git
-
Step into the app and install the dependencies:
$ cd nft-app && npm i
-
Add the corresponding
env
variables by coping and pasting the.env.example
configs.$ cp .env.example .env
You can edit this variables in the
env
file. -
Start the app.
$ npm start:server
The app runs with Nodemon, so it will restart on every file change.
You can interact with the app via 2 REST APIs. Bellow both of them are detailed.
The HTTP base API for the blockchain nodes runs on http://localhost:4000
, for which you can see all the endpoints here.
An example of request for this API could be (run on your terminal):
curl --location --request GET 'http://localhost:4000/api/node/info'
The NFT API is the custom one developed on this repo. Runs on http://localhost:8080
.
Method | URL | Example |
---|---|---|
GET |
/api/nft_tokens |
curl --location --request GET 'http://localhost:8080/api/nft_tokens' |
GET |
/api/nft_tokens/:id |
curl --location --request GET 'http://localhost:8080/api/nft_tokens/657f610728eef97d55e50212871f0993bb7cc700' |
GET |
/api/transactions |
curl --location --request GET 'http://localhost:8080/api/transactions' |