Git Product home page Git Product logo

ml-wallet-pm2-wrapper's Introduction

Wallet pm2 wrapper

Overview

This repository hosts an application designed to act as a wrapper for a wallet, addressing the challenge of autorun functionality. Additionally, it integrates the capability to send Telegram notifications, contingent upon providing the necessary credentials. This solution is crafted for Linux servers and requires Node.js version 20, npm, and PM2 to be installed globally.

Features

  1. Autorun: Addresses the issue of autorun functionality, ensuring the wallet application launches reliably upon server startup or reboot.

  2. Telegram Notifications: Incorporates the ability to send notifications via Telegram, enhancing user communication and alerting capabilities.

Prerequisites

  • Node.js 20: Node.js version 20 or higher must be installed.
  • PM2: PM2, a process manager for Node.js applications, needs to be installed globally for efficient process management.

If you are using Remote access to server make sure you created separate user and passwordless access to the server.

Setup node-daemon as a service

Check instructions here

Installation

  1. Clone Repository: Clone this repository to your local environment.

    git clone <repository_url>
    
  2. Env file: Navigate to the root directory of the cloned repository and copy environment variables file.

    cd <repository_name>
    cp .env.example .env
  3. Configuration: Open the .env file and configure the following environment variables according to your setup:

    PATH_WALLET_CLI=/home/safeuser/mintlayer/wallet-cli
    PATH_WALLET=/home/safeuser/mintlayer/wallet/wallet_file
    NETWORK=testnet
    CHAT_ID=123456789
    TELEGRAM_TOKEN=123456789:ABCDEF
  4. Start app with pm2

    pm2 start ecosystem.config.js
  5. Check logs

    pm2 logs wallet
  6. Save pm2 app list

    pm2 save

ml-wallet-pm2-wrapper's People

Contributors

anyxem avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.