Socket
Book a DemoInstallSign in
Socket

github.com/muhammadfarhankt/nft-marketplace

Package Overview
Dependencies
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/muhammadfarhankt/nft-marketplace

Source
Go
Version
v0.0.0-20240221061559-3dddf0dffcd9
Version published
Created
Source

NFT Marketplace (Under development)

NFT Bidding Platform. Users can mint, sell, buy & re-sell NFTs.

Tech Stack

  • Go Programming Language

  • Clean Architecture (Hexagonal) & Microservices (DDD - Domain Driven Design)

  • gRPC & Apache Kafka

  • Fiber Framework

  • PostgreSQL & MongoDB

  • JWT

  • Kubernetes

Required

  • Golang
  • Docker
  • Postman
  • IDE (Vscode)
  • GCP CLI

Start PostgreSQLon Docker 🐋

docker run --name nft_marketplace_test -e POSTGRES_USER=user -e POSTGRES_PASSWORD=123456 -p 4444:5432 -d postgres:alpine

Execute a container and CREATE a new database

docker exec -it nft_marketplace_test bash 
psql -U user
CREATE DATABASE nft_marketplace_test;
\l

Migrate command

# Migrate up
migrate -database 'postgres://user:123456@localhost:4444/nft_marketplace_test?sslmode=disable' -source <path> -verbose up 

# Migrate down
migrate -database 'postgres://user:123456@localhost:4444/nft_marketplace_test?sslmode=disable' -source <path> -verbose down 

.env Example

APP_HOST=127.0.0.1
APP_PORT=3000
APP_NAME=nft-marketplace
APP_VERSION=v0.1.0
APP_BODY_LIMIT=10490000 //10 MB
APP_API_KEY=pwnYdkPTacwhH2O1
APP_ADMIN_KEY=uKgDUvbpIJ44dvHx
APP_READ_TIMEOUT=60
APP_WRITE_TIMEOUT=60
APP_FILE_LIMIT=2097000 //2 MB
APP_GCP_BUCKET=nft-marketplace-dev-bucket

JWT_API_KEY=JwtApiKeycwhH2O1
JWT_ADMIN_KEY=JwtAdminKeyHxfdeG
JWT_SECRET_KEY=JwtSecretKey1KrA0
JWT_ACCESS_EXPIRES=86400 //1 Day
JWT_REFRESH_EXPIRES=604800 //7 Days

DB_HOST=127.0.0.1
DB_PORT=4444
DB_PROTOCOL=tcp
DB_USERNAME=user
DB_PASSWORD=123456
DB_DATABASE=nft_marketplace_test
DB_SSL_MODE=disable
DB_MAX_CONNECTIONS=25

Run Project

go run main.go

FAQs

Package last updated on 21 Feb 2024

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