Coder Social home page Coder Social logo

cloudbankproject's Introduction

Wellcome to CloudBank

It is the most popular and original CloudCoin python script. The code is exceptionally portable and has been used successfully on a very broad range of ubuntu systems and hardware.

Contact

Gitter GitHub Issues

Getting Started

The CloudBank Documentation site hosts the CloudBank homepage, which has a Quick Start section.

Operating system Status
Ubuntu and macOS TravisCI
Windows AppVeyor
sudo apt-get update -y && sudo apt-get upgrade -y && sudo apt-get install vim -y && sudo apt-get install python-dev -y && sudo apt-get install libevent-dev -y &&  sudo apt-get install python-virtualenv -y && apt-get install git -y

Install python last version..

sudo apt-get install --reinstall language-pack-en -y
export LC_ALL="en_US.UTF-8"
export LC_CTYPE="en_US.UTF-8"
sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt-get update
sudo apt-get install python3.3
sudo apt-get install python3-pip
apt install python-pip
pip install --upgrade virtualenv

Other configurations..

virtualenv -p python3 venv
cd venv
. bin/activate
git clone https://github.com/omgbbqhaxx/cloudbankproject.git
mv cloudbankproject cloudbank && cd cloudbank
pip install -r requirements.txt
pipenv install requests
export DJANGO_SETTINGS_MODULE=cloudbank.settings
pip install -U "celery[redis]"

Your need install Redis on your server because celery work with redis server.

Step by step installation from here NEWER FORGET TO CHANGE PASSWORD WITH YOUR PW FROM REDİS.CONF.!

pip install celery && sudo apt-get update -y && sudo apt-get install build-essential tcl -y && cd /tmp && curl -O http://download.redis.io/redis-stable.tar.gz && tar xzvf redis-stable.tar.gz && cd redis-stable && sudo make install && make && make test
sudo mkdir /etc/redis && cd /etc/redis && wget https://gist.githubusercontent.com/omgbbqhaxx/03b31c2ed319bc987ddb7c8d77c33861/raw/d04c90c96e950c7fb2528774259c3843b20fb7a3/redis.conf
cd /etc/systemd/system/ && wget  https://raw.githubusercontent.com/omgbbqhaxx/cloudbankproject/master/redis.service
sudo adduser --system --group --no-create-home redis
sudo mkdir /var/lib/redis
sudo chown redis:redis /var/lib/redis
sudo chmod 770 /var/lib/redis
sudo systemctl start redis
sudo systemctl status redis
redis-cli
ping

4p2p github helper comments.

git clone https://github.com/omgbbqhaxx/cloudbankproject.git
git pull
git fetch --all
git reset --hard origin/master

Gunicorn configurations

The simplest way to install it is to use pip, a tool for installing and managing Python packages:

cd /opt/venv/bin
wget https://raw.githubusercontent.com/omgbbqhaxx/cloudbankproject/master/gunicorn_start
chmod u+x gunicorn_start
. gunicorn_start

Circus: A Process & Socket Manager configurations

The simplest way to install it is to use pip, a tool for installing and managing Python packages:

sudo apt-get install libzmq-dev libevent-dev python-dev python-virtualenv
cd /opt/venv/bin
. activate
git clone https://github.com/omgbbqhaxx/circus-web.git
cd circus-web
python setup.py build
python setup.py install
pip install chaussette

example.ini Show docs from here,

[watcher:startserver]
cmd = /opt/venv/bin/gunicorn_start
numprocesses = 1

[watcher:starttcpconnections]
cmd = python /opt/venv/cloudbank/p2p.py
numprocesses = 1

[watcher:startcelery]
cmd = celery -A cloudbank worker --workdir /opt/venv/cloudbank  -l info -B
numprocesses = 1

The file is then passed to circusd:

circusd example.ini
circusd --daemon example.ini
circusctl quit --waiting

Finally we can complate nginx configuration!

NEWER FORGET TO CHANGE SERVER_NAME WITH YOUR IP ADDRESS FROM NGİNXCONF.!

sudo apt-get install nginx
sudo service nginx start
cd /etc/nginx/sites-available
wget https://raw.githubusercontent.com/omgbbqhaxx/cloudbankproject/master/nginxconf
ln -s /etc/nginx/sites-available/nginxconf /etc/nginx/sites-enabled/nginxconf
cd /opt/venv/
mkdir logs && cd logs
touch nginx-access.log && touch nginx-error.log

REST APIs

GET Endpoints

  • http://$yourURL.com/api/v1/createnewwallet/ - allows to create new wallet and private key.

  • http://$yourURL.com/api/v1/alltransactions/ - allows to get all transactions from database.

  • http://$yourURL.com/api/v1/gettransaction/$transactionID - allows to get transaction details.

  • http://$yourURL.com/api/v1/getwalletfrompkey/$publicKey - allows to create new wallet and private key.

  • http://$yourURL.com/api/v1/getpublickeyfromprikey/$privateKEY - allows to get public key from private key.

  • http://$yourURL.com/api/v1/getbalance/$wallet - allows to get last balance from wallet.

  • http://$yourURL.com/api/v1/getwalletdetails/$wallet - allows to get all wallet history.

POST Endpoints

  • http://$yourURL.com/api/v1/sendcloudcoin/
  • sprikey sender's private key
  • receiverwalletallows receiver's wallet
  • amount and amount.

Donations

  • My ethereum wallet : 0xFBd6f9704478104f0EF3F4f9834c3621210fE598
  • My Nano wallet : xrb_1ppmk9ki9kungyer845deysmwokfeughmojxuhorpn7fpiizmka7b3r5jj4z

License

License

All contributions are made under the GNU General Public License v3. See LICENSE.

cloudbankproject's People

Contributors

omgbbqhaxx avatar dependabot[bot] avatar

Watchers

James Cloos avatar Lisa Adelle Hurley  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.