Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

github.com/cheenusrivel/nft-go-api

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/cheenusrivel/nft-go-api

  • v0.0.0-20230421042334-b71882eaf7e4
  • Source
  • Go
  • Socket score

Version published
Created
Source

nft-go-api

Golang API with gin-gorm framework

The API will collect National Registration Identity Card (NRIC) and wallet address from WebApp

Store into RDBS (PostgreSQL) the unique NRIC and wallet address

POST API Response with a Receipt produce by hash the API body (Hash is used due to one way encrytion)

docker-compose.yaml script for PostgreSQL DB

Setup

Run the below commands in VSCode terminal to install Golang necessary artifacts
  • $ go get -u gorm.io/gorm - Install gin-gorm framework
  • $ go get gorm.io/driver/postgres - Install postgres DB driver
  • $ go get github.com/gin-contrib/cors - Install cors library to allow local origin
  • $ docker-compose up --build - To install postgres DB in docker adn running in Port 5432. Make sure, Docker Desktop is running on local before running this command.

Run nft-go-api

Run the below commands in VSCode terminal to start the application
  • $go run main.go - Application launches with URL http://localhost:8080/

Output

Get Command

image

DB Table

image

POST Reply with Receipt

image

FAQs

Package last updated on 21 Apr 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc