/dark_market

dark market api using Go and gin-gonic framework

Primary LanguageGoApache License 2.0Apache-2.0

Dark Market using Go and Gin-Gonic framework

dark market

⚠️ This project will be use web3.0 in future for default transaction use XMR(monero) or BTC(bitcoin) not use manually transaction anymore just connect to your ledger or wallet then you can shop using your own money in your ledger or wallet ⚠️

🛠️ Installation Steps

  1. Clone the repository
git clone https://github.com/crownss/dark_market
  1. Install dependencies
go mod tidy
  1. Run the app
go run .
# or
go build -o start
# then
./start
# or
docker build -t <your_tag_name>:<your_version> .
# then
docker run -dit <your_tag_name>
  1. Intruction
DBUSER=
DBPASSWORD=
DBNAME=
DBHOST=
DBPORT=
SSLMODE=
DBTIMEZONE=

RUN_PORT=

SECRET_KEY=
  • Generate random secret key
package main;import("fmt";"time";"math/rand");var letters=[]rune("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890");func randSeq(n int)string{b:=make([]rune, n);for i:=range b{b[i]=letters[rand.Intn(len(letters))]};return string(b)};func main(){rand.Seed(time.Now().UnixNano());fmt.Println(randSeq(6))}
  • Change transaction in models/tx.go default trasanction using BTC

  • Change users requirements in models/users.go default using username and password for decentralization and anonymity



🌟 You are all set!

💻 Built with


Developed with ❤️ in Asia/Jakarta 🇮🇩