CryptoBonds is a blockchain application that was built using Hyperledger Sawtooth. The goal of the project is to make a stable coin with its value linked to real life company bonds. CryptoBonds acts as a clearing firm and monitors transactions between the banks and the traders. Traders are able to exchange cryptobonds and other cryptocurrencies with other users.
CryptoBonds is developed by a team of five people at HackIllinois 2019, with the help of mentors from Hyperlegder and Docker opensource community.
Click here to access our front end web interface. Signin Accounts example
- Bank
- Username: usbank1
- Password: usbank123
- Company
- Username: hyperledger1
- Password: hyper123
- Trader
- Username: ben1
- Password: ben123
Cryptobonds application runs on two servers. One of them is a web application for client interaction involving banks, companies and traders. The other server is where blockchain is setup. To setup blockchain node server on your machine, please refer to this repository
This application is built using python Django framework deployed on heroku.
Being a PythonWeb framework, Django requires Python. See What Python version can I use with Django?
$ sudo apt-get install python3-pip
Note: If your distribution already has pip installed, you might need to update it if it’s outdated
It’s a good idea to keep all your virtualenvs in one place, for example in .virtualenvs/ in your home directory. Create it if it doesn’t exist yet
$ mkdir ~/.virtualenvs
Now create a new virtualenv by running:
$ python3 -m venv ~/.virtualenvs/djangodev
On some versions of Ubuntu the above command might fail. Use the virtualenv package instead
$ pip3 install virtualenv
$ virtualenv --python=`which python3` ~/.virtualenvs/djangodev
The final step in setting up your virtualenv is to activate it:
$ source ~/.virtualenvs/djangodev/bin/activate
If the source command is not available, you can try using a dot instead:
$ . ~/.virtualenvs/djangodev/bin/activate
After you’ve created and activated a virtual environment, enter the command
$ pip3 install Django
Clone repository using following command
git clone https://github.com/crypto-bonds/django-client.git
To run server locally
cd django-client
python manage.py migrate
python manage.py runserver
To get the code up and running on your device follow the instructions here: https://devcenter.heroku.com/articles/django-app-configuration