Created: 2024-06-06 Thu 12:41
A simple “web shop” with custom monero integration
=> T3-Stack
monero-js
)
monero-wallet-rpc
monerokon-2024-demo-shop
# clone the repo git clone https://gitlab.com/monero-studio/xmr-t3-starter.git cd xmr-t3-starter # cd into new directory git checkout monerokon-2024-demo-store # switch branch npm i # install node_modules npx prisma migrate dev # migrate prisma schema
monero-wallet-rpc
monero-wallet-cli
--stagenet
option on wallet creation for stagenet
Start the rpc with: monero-wallet-rpc --config rpc.config
rpc-bind-port=38083 wallet-dir=./ daemon-address=stagenet.community.rino.io:38081 non-interactive=1 trusted-daemon=1 stagenet=1 disable-rpc-login=1 log-level=2
.env
file from the example withcp .env.example .env
model Transaction { id String @id @default(uuid()) transactionKey String? @unique amount Float? @default(0) isConfirmed Boolean @default(false) isUnlocked Boolean @default(false) item Image? @relation(fields: [itemId], references: [id]) itemId String? } model Image { id String @id @default(uuid()) // Monero Transaction Transaction[] moneroSubaddress String? @unique payedAmount Float? @default(0) expectedAmount Float? @default(0) isPayed Boolean? @default(false) imagePath String @unique }