GithubHelp home page GithubHelp logo

peercoin / peercoin-address-generator Goto Github PK

View Code? Open in Web Editor NEW
7.0 11.0 14.0 1.35 MB

A secure, minimal client-side Peercoin address generator.

Home Page: https://paperwallet.peercoin.net/

License: BSD 3-Clause "New" or "Revised" License

HTML 65.98% JavaScript 26.91% Dockerfile 0.06% SCSS 7.05%
paper-wallet peercoin

peercoin-address-generator's Introduction

Peercoin Address Generator

This is the source-code of paperwallet.peercoin.net, a secure client-side peercoin address generator.

It was built from ground up aiming for performance on mobile devices, but you can also use it on desktop browsers.

Building locally

If you're concerned about generating your addresses online, there is always the option of building the project locally. The steps to do that are listed bellow:

  1. Make sure you have Node installed.
  2. Clone this repo;
  3. In the project folder, run npm install;
  4. Then run npm start.
  5. Open localhost:3333 in your browser and generate your wallet.

Running wallet via docker - Instructions

  1. Clone this repo locally on master branch and run build instructions;
  2. Clone this repo on server on docker branch;
  3. Copy /public content from local to /public folder on docker branch you cloned in server;
  4. Run: docker build -t ppc-wallet .;
  5. Run: docker run --name ppc-wallet-nginx --restart on-failure -p 5001:80 ppc-wallet.

The Reverse-proxy and SSL files are located on local NGINX (outside of docker). They can be found at: /etc/nginx/sites-available/default.

SSL is generated by Let's Encrypt via certbot.

The URLs addressed are:

https://hodl.peercoin.net/ https://paperwallet.peercoin.net/

In order to update SSL certificate, run the command below:

sudo systemctl stop nginx && sudo certbot certonly --standalone -d hodl.peercoin.net -d paperwallet.peercoin.net && sudo systemctl start nginx

The configuration used at /etc/nginx/sites-available/default is:

# Peercoin Wallet configs

upstream ppc-wallet-generator {
  server 127.0.0.1:5001;
}

server {
  listen 80;
  server_name hodl.peercoin.net paperwallet.peercoin.net;
  
  location / {
    proxy_pass http://ppc-wallet-generator;
  }

  listen 443 ssl;
  ssl_certificate /etc/letsencrypt/live/hodl.peercoin.net/fullchain.pem;
  ssl_certificate_key /etc/letsencrypt/live/hodl.peercoin.net/privkey.pem;
  include /etc/nginx/conf.d/ssl.conf;
}

peercoin-address-generator's People

Contributors

backpacker69 avatar cybnate avatar kazzkiq avatar willyfromtheblock avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

peercoin-address-generator's Issues

Some variables(?) are left in the About view

Created in 2012, it's been running for more than <b>{{timeAlive()}} years</b> with considerably less energy than pure PoW cryptocurrencies such as Bitcoin. Along those {{timeAlive()}} years Peercoin also never had any type involvement with pre-mining, fraudulent ICOs or any critical security breaches.

Make it a full PWA

We need some stuff in order to make it run fully offline/"native" (PWA):

  • Add manifest.json;
  • Add app icons (android/iOS sizes);
  • Setup theme colors (Android);
  • Setup splash screen image (iOS)
  • Add service-worker.js

Update project bundler

At the time of conception of this project, Brunch was used as bundler. But now it's prime time has since past and the project is not so active anymore, which leads to bugs hard to solve, and features that never come making projects based on it hard to mantain. Small community also doesn't helps with it's survival rate.

The main two options for replacement today are:

Both are rocking for years now and have super active community and plugins support. Webpack feels more like a cannon to kill a fly, since it's so full of features. Rollup is like a light fast car that delivers what it needs to.

We should discuss here which one to use for this project.

My vote goes for Rollup, since I already use it extensively, and since I'm basically the only front-end dev here who cares, if no one else gets involved we will eventually pick it up.

Everyone is more than welcome to argue.

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.