This is a serverless Typescript Node Project to work with NFTS
- Mint NFTS
- List all NFTS
- Get details of a NFTS
Server: Node, Express, Serverless, AWS Lambda, AWS Dynamodb
Clone the project
git clone https://link-to-projectGo to the project directory
cd mintable-appInstall dependencies
npm installStart the server as serverless
npm run local-serverlessStart the server as Node server
npm run devTo deploy this project run
npm run deployEndpoint is deployed at
https://t65m3ezdq9.execute-api.ap-southeast-1.amazonaws.com/dev
Swagger UI is available at http://localhost:3000/api-docs when you run Node without Serverless
npm run dev GET /ntfs| Parameter | Type | Description |
|---|---|---|
api_key |
string |
Required. Your API key |
GET /ntfs/:{id}| Parameter | Type | Description |
|---|---|---|
id |
string |
Required. Id of NFT to fetch |
POST /ntfs/:{id}| Body | Type | Description |
|---|---|---|
name |
string |
Required. name of NFT to mint |
imageUrl |
string |
Required. imageUrl of NFT to mint |
description |
string |
Required. Id of NFT to mint |
POST /authentication/login| Body | Type | Description |
|---|---|---|
username |
string |
Required. username of user |
password |
string |
Required. hashed password of user |
POST /authentication/validate| Header | Type | Description |
|---|---|---|
authorization |
string |
Required. token of user |
- Create credentials with sufficient rights to deploy the serverless code
- Set up of AWS credentials on your machine including the region
- Please create a DynamoDB table called NFTs in the SAME REGION as the lambda being deployed
Please note that deploying the code to serverless locally or on cloud will append a stage name to the api.
For example, http://localhost:3000/ntfs will become http://localhost:3000/dev/ntfs
