Git Product home page Git Product logo

energy_shop's Introduction

IT As Energy Shop

Version: 1.0.0
IT As Energy Shop is a jumpscale package allows to exchange bitcoins and (later) more coins like eth to TFT.

Content


Prerequisite

rm -r ~/.electrum/ # Avoid using this if u already using any stored wallet
electrum daemon -d --testnet # Start daemon on testnet server

Download

Clone Project

git clone [email protected]:threefoldfoundation/tftshop.git
cd tftshop

Install

poetry shell
poetry install

Configure Wallets

  1. Create new wallet

    # Make sure to store output
    electrum create -w ~/.electrum/testnet/WALLET_NAME --testnet
  2. Load Wallet

    electrum load_wallet -w ~/.electrum/testnet/WALLET_NAME --testnet
  3. Generate [Master Public Key] mpk for wallet

    # output is the master public key that we are looking for.
    electrum getmpk -w ~/.electrum/testnet/WALLET_NAME --testnet
  4. Using jsng shell and add your

    # Run jsng on terminal inside `poetry shell`
    j.core.config.set("tftshop_mpk", "YOUR MASTER PUBLIC KEY")
    
    # Register your stellar *tft wallet* IMPORTANT!!
    j.clients.stellar.new("tftshop_wallet", "your secret")

Configure backup

We are using the same mechanism from threebot backup service, so to have a threebot system backup, you need to configure a restic client with the name systembackupclient

systembackupclient = j.tools.restic.get("systembackupclient", repo="$repo_url", password="$backup_password", extra_env={"AWS_ACCESS_KEY_ID": "$AWS_ACCESS_KEY_ID", "AWS_SECRET_ACCESS_KEY": "$AWS_ACCESS_KEY_ID"})"

and it will make sure to backup ~/.config/jumpscale/, "~/sandbox/cfg/ and ~/.ssh/ exclulding the ~/.config/jumpscale/logs directory

Tips

On OSX, after installing the Electrum app, the run_electrum command is avalable in the /Applications/Electrum.app/Contents/MacOS folder.

Serve

threebot start --local

Check UI: https://localhost:8443/

Install Package

  1. Login using ThreeFold Connector

    login

  2. Go to Packages Page

    packages page

  3. Click on + ADD button on top right corner.

  4. Add package path for e.g /home/mohamed/Desktop/tftshop/jumpscale/packages/gettft

    package add

  5. Click submit button

  6. Visit Ui on https://localhost:8443/gettft/

    ui page"

Install using helm

build the docker image

docker build -t tftshop:$(git describe --abbrev=0 --tags | sed 's/^v//') .

Upload the image to the kubernetes machine or to a repository and override the image in your values.yaml then.

helm install tftshop -f <yourvaluesfile.yaml> helmcharts/tftshop

Installation remarks

It is important that the jsngmodel and the electrum wallet data are not lost. If so, we do not know who sent the other crypto or deposit addresses can be distributed multiple times.

Set email configurations

To send emails after each successful operation, this uses notifier service in admin panel

  • ENV:
    • email_host: example: "smtp.gmail.com"
    • email_port: example: "587"
    • email_username
    • email_password

Set prices limit

  • Edit in limits.json

energy_shop's People

Contributors

hossnys avatar waleedhammam avatar

Watchers

 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.