⚠️ 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 ⚠️
- Clone the repository
git clone https://github.com/crownss/dark_market
- Install dependencies
go mod tidy
- 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>
- Intruction
- .env file: see
env.example
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!
Developed with ❤️ in Asia/Jakarta 🇮🇩