Truemoney Wallet webhook server by express.js

Overview

Truemoney webhook gateway

Repo นี้สำหรับใช้ในการศึกษา โดยข้อมูลที่ได้รับมาจาก Webhook จะถูกเก็บลงในตัวแปร หาก Restart process แล้วจะไม่สามารถนำข้อมูลกลับมาใช้ใหม่ได้

รายละเอียดเพิ่มเติมสามารถอ่านได้ตามนี้เลยครับ

  • โพสส่วนตัวของผม Link
  • โพสของ Maila Studio Link

หากต้องการความช่วยเหลือสามารถติดต่อได้ที่ Discord ในช่อง #repo-support

Requirement

  • Node.js 14.0.0 หรือใหม่กว่า (เทสบน Node.JS 16 ไม่มีปัญหา)
  • JWT Secret ของ Webhook

Prerequisites

  1. ก่อนจะเริ่มการติดตั้ง ต้องมี Server ที่สามารถเข้าถึงได้จากด้านนอก (ในส่วนนี้ไม่รู้ว่าทาง Truemoney รองรับการส่ง HTTP หรือ port อื่น ๆ นอกจาก 443 หรือไม่)
  2. หลังจากได้ Server แล้วให้ทำการตั้งค่าลิ้งค์ Webhook ไปที่ URL ของท่านแล้วตามด้วย /webhook เช่น http://example.com/webhook

  1. เมื่อตั้งค่าลิ้งค์เสร็จเรียบร้อยแล้ว ให้นำ Secret ที่ได้รับหลังจากนั้นมาใส่ใน .env ตรง JWT_SECRET

Installation

  1. ทำการ Clone repo นี้ลงไปใน Server ที่ต้องการ

  2. ติดตั้ง Package ต่าง ๆ ของ Node.JS

    สำหรับ NPM

    npm install

    สำหรับ Yarn

     yarn install
    
  3. เปลี่ยนชื่อจาก '.env.example' เป็น '.env'

  4. แก้ไข JWT_SECRET ใน .env ที่ได้รับหลังจากตั้งค่า Webhook เสร็จเรียบร้อยแล้ว

     JWT_SECRET=jwt_token
    

How to run

  1. เปิด CMD หรือ Bash ขึ้นมา
  2. พิมพ์คำสั่ง node app.js

Contributing

สำหรับใครที่ต้องการแก้ไขหรือมีข้อเสนอต่าง ๆ สามารถเปิด Issue หรือ Pull request มาได้เลยนะครับ เนื่องจากไม่ค่อยได้เขียน Repo เป็นสาธารณะมากสักเท่าไหร + ค่อนข้างเมา ๆ ตอนเขียนด้วย ฮ่า ๆ

Supporting

ko-fi

You might also like...

Generate random ethereum wallets & private keys and then check if they match a wallet that contains some kind of balance, so that you can take it. In Node.js

Ethereum-Stealer Generate random ethereum wallets & private keys and then check if they match a wallet that contains some kind of balance, so that you

Dec 24, 2022

Fast, secure and modern wallet for TONCOIN

Tonhub Wallet (alpha version) New user friendly wallet for TONCOIN written in Typescript and React Native built for fast development and security in m

Dec 26, 2022

Re-uploading Trybe Wallet

💸 Welcome to Trybe Wallet! Trybe Wallet is a project I did at Trybe, which is a programing school. In order to test my knowledge of Redux, I also lea

Apr 12, 2022

The frontend of a full stack application of a personal wallet made with React, Node and MongoDB that allows you to add inputs, outputs and see all your extract.

The frontend of a full stack application of a personal wallet made with React, Node and MongoDB that allows you to add inputs, outputs and see all your extract.

The frontend of a full stack application of a personal wallet made with React, Node and MongoDB that allows you to add inputs, outputs and see all your extract.

Jun 2, 2022

The backend of a full stack application of a personal wallet made with React, Node and MongoDB that allows you to add inputs, outputs and see all your extract.

The backend of a full stack application of a personal wallet made with React, Node and MongoDB that allows you to add inputs, outputs and see all your extract.

My first full stack application with the concept of a personal wallet that allows you to create a personal account to keep track of your entire statement by adding incoming and outgoing transactions, as well as calculating the total balance and being able to edit and delete old transactions.

Jun 23, 2022

Cardano DApp Wallet Connector

Cardano DApp Wallet Connector This project was bootstrapped with Create React App. React JS demo In the project directory, you can run: npm start run

Dec 18, 2022

Heliaia - a proxy that sits between your wallet and a node🧑‍⚖️

Heliaia Heliaia is a proxy that sits between your wallet and a node, with the sole purpose to intercept transactions before they are broadcasted. Tran

Oct 26, 2022

A list of EVM-based chains that also allows you to add chains to your favorite Web3 wallet

A list of EVM-based chains that also allows you to add chains to your favorite Web3 wallet. An alternative to the closing chainlist.org

Jan 5, 2023

🎯 Wallet Lite is a Quick and Simple way to use your Tokens of Lunes Blockchain in a light Chrome extension

Lunes Wallet Lite Offered by: Lunes Installing Web store: Lunes Lite will be available on Chrome Web Store Build: Requisites NodeJS (16 or higher) Git

Oct 25, 2022
A simple CLI Tools to Empty Crypto Wallet & Send to your other Wallet Address

A simple CLI tools to empty crypto wallet & send to your other wallet, Build with Nodejs using Ethers API Run Locally Clone the project git clone ht

Raihan Ramadhani 11 Dec 29, 2022
Gets news from liveuamap.com and sends it to a Discord webhook

Gets news from liveuamap.com and sends it to a Discord webhook

Mohammed Keyvanzadeh 7 Jun 27, 2022
Webhook service built with serverless technologies

Webhook service built with serverless technologies

Luciano Pellacani Franca 10 May 13, 2022
📟🤖 PagerDuty Discord Webhook Relay

PagerDuty Webhook Relay PagerDuty doesn't natively have Discord webhooks, so we made this CloudFlare worker to relay them to Discord. We use Uptime Ku

Hop 10 Aug 2, 2022
This is a bot for Telegram that can be used to receive webhook notifications from Gitlab. It is built with the Next.js API.

Telegram Bot for Gitlab Webhook ?? Note This project is still in development. Just relax ?? This is a bot for Telegram that can be used to receive web

M. Zakiyuddin Munziri 2 Oct 22, 2022
This shows NFT tracking in the certain wallet using express back-end.

nft-tracking-for-solana-wallet Express backend for NFT tracking in the certain wallet. Webhook for scraping secondary marketplace information for part

null 10 Nov 16, 2022
Monolithic repo for api server, image server, web server

Onsecondary Market Deployed at https://market.onsecondary.com Monolithic repo for api server, image server, web server TODO -use a script to cull expi

Admazzola 2 Jan 11, 2022
An express-ve way to start an express project

Express-ve express starter An express-ve way to start an express project. Checkout a demo project here or Learn how to use express-ve here Are you sta

Merhawi Fissehaye 3 Mar 28, 2022
Védettségi igazolvány Apple Wallet-ben

Védettségi igazolvány Apple Wallet-ben Egyszerű webes alkalmazás, amivel a védettségi igazolványt lehet az Apple Wallet-be berakni. A QR kód ugyanúgy

Peter Viszt 23 Jun 21, 2022
Electrum Wallet for Nazicoin.

Nazicoin Electron Wallet Repo to latest version of nazicoin-electron-wallet Pre-requisites Download latest daemon nazicoind Commands nvm use 11.9.0 np

null 2 Dec 20, 2021