📖
Qwertycoin Documentation
  • Introduction to Qwertycoin
  • Getting Started
    • Terminology
    • Simple Steps
  • Wallet
    • Types of Wallet
    • Paper Wallet
    • CLI Wallet
    • GUI Wallet
    • Zero Wallet
    • Mobile Wallet
    • Web Wallet
    • RPC Wallet
    • Wallet Backup
    • Wallet Recovery
    • Wallet Update
    • Sign and Verify Messages
  • Mining
    • Mining Options
    • Cloud Mining
    • Creating a Mining Pool
    • Mining With SBC
    • Mobile Mining
    • Using a Mining Pool
    • XMR-Stak
    • XMR-Stak Linux
    • XMRIG
  • Node (Daemon)
    • Configuration
    • Fix Sync Issues
    • Load Checkpoints
    • Start Masternode
  • Trading
    • Exchanges
    • How to Trade on BISQ
    • How to Trade on CREX24
  • Developer
    • Compiling Daemon from Source
      • MacOS QT Install
      • Install Cmake 3.14
    • Forking Qwertycoin
    • Google Breakpad Integration
    • Hosting Block Explorer
    • Hosting Web Wallet
    • Hosting Faucet
    • Local Testnet
    • Resources
  • API
    • Daemon HTTP RPC Commands
    • Daemon JSON RPC API
    • Wallet RPC API
Powered by GitBook
On this page
  • Install prerequisites
  • Compilation
  • Deployment
  • Edit configuration

Was this helpful?

  1. Developer

Hosting Web Wallet

PreviousHosting Block ExplorerNextHosting Faucet

Last updated 5 years ago

Was this helpful?

The Qwertycoin web wallet does everything client-side to give the best privacy to users. The API servers are currently only used to optimize the communication with the daemon and compress the blockchain.

Install prerequisites

  • You will need to install node.js and NPM (node's package manager) to compile the web wallet. For Linux (Ubuntu) enter the code below:

sudo apt-get update
sudo apt-get install nodejs
sudo apt-get install npm

Compilation

  • Clone the repository:

git clone https://github.com/qwertycoin-org/webwallet-js.git
  • Enter webwallet-js and run the following commands:

npm install
nodejs ./node_modules/typescript/bin/tsc --project tsconfig.json
nodejs build.js

The first line installs the required dependancies (typescript) and the second compiles the typescript code.

Deployment

You can host the web wallet using Apache or Nginx. For this tutorial I will be using Apache.

  • Install Apache

sudo apt-get update

sudo apt-get install apache2

sudo ufw allow 'Apache Full'
  • Copy everything in the src directory to the html directory.

sudo cp -rf api.html config.ts lib/ service-worker-raw.js api.js d/ manifest.json service-worker-raw.ts api.ts index.html model/ translations/ assets/ index.js pages/ utils/ config.js index.ts providers/ workers/ /var/www/html

Edit configuration

You will have to edit the file src/config.ts in order to change the API endpoint (point it to your daemon). Once that is complete you should now see the web wallet at your address like so: