Giter Club home page Giter Club logo

peercoin.net's Introduction

Peercoin.net Repo

The static html files for Peercoin.net. The website is automatically updated from this repo every 10 minutes, so be careful with any commits to the master branch.

Issues

Content requests, bugs, etc. are all handled through Github Issues. We will try to get to your issue as soon as possible.

Pull Requests

If you have a simple change to the website, we ask that you put in a pull request instead of an issue. These include things like link changes, text errors, etc. We can add these to the live site with the push of a button, which makes everything easier. We are currently using Tip4Commit and Peer4Commit to reward commiters. Fluff commits will be rejected.

tip for next commit tip for next commit

If don't know how to submit a pull request use these helpful guides: one and two.

Installing and Running

Below are just some notes for running the website yourself. We run the website on a simple Apache2 server with PHP5 installed.

Deploy

We run the deploy.sh every 10 minutes, so that the live site is always up to date. This also calls the market ticker updater. The cron job is listed below:

*/10 * * * * /root/deploy.sh > /root/error.txt 2>&1

The script(deploy.sh):

#!/bin/bash

# Install - Only Run Once
# git clone https://github.com/super3/peercoin.net.git /var/www

# Update
cd /var/www/
git fetch origin
git reset --hard origin/master

# Update Ticker
php /var/www/update_tickerinfo.php

Market Ticker

The ticker sources data from CoinMarketCap, and if that fails, falls back to the Vircurex API. tickerinfo.php returns a JSON array containing the last price, market capitalization, and total number of PPC in circulation.

Ensure that ppcmarket.txt is writeable by the PHP user so that the ticker can store updated information. Running update_tickerinfo.php will update the info provided by the ticker. This should be run via cron.

peercoin.net's People

Contributors

super3 avatar iheartcryptocoin avatar gnewt avatar ngbatnicdotmil avatar jvanoel avatar waynn avatar xeroc avatar theleaper avatar kerberus35 avatar brittlewis12 avatar danbartram avatar mrbickle avatar sebatianmichaelis avatar malaga2333 avatar kurokurokon avatar corneliu-s avatar cookiee avatar mikebryant avatar mvanbeurden avatar mal315 avatar charlesfeng avatar sashazykov 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.