A self-made cryptocurrency using Block-chain technology in Python
The project uses Blockchain Technology by implementation through Python and Flask in the backend for a server. It further uses SQL database for storing the user data such as password, username, email, account balance etc. Through HTML/CSS and JavaScript the Blockchain is deployed on a website. The website is on a local-host. This project enhances the knowledge of blockchain technology which has a very high potential in future.
R-Cell(main)
โโ static
โ โโ css
โ โ โโ index.css
โ โ โโ layout.css
โ โ โโ login.css
โ โ โโ register.css
โ โโ images
โ โโ background.jpeg
โ โโ favicon.ico
โ โโ favicon2.png
โ โโ home.png
โ โโ profile.png
โโ templates
โ โโ handlers
โ โ โโ 404.html
โ โโ includes
โ โ โโ _formhelpers.html
โ โ โโ _messages.html
โ โโ buy.html
โ โโ dashboard.html
โ โโ index.html
โ โโ layout.html
โ โโ login.html
โ โโ register.html
โ โโ transaction.html
โโ app.py
โโ blockchain.py
โโ forms.py
โโ sqlhelpers.py
The project involes the installation of following libraries and environment:
Install all these requirements:
$ pip install -r requirements.txt
$ mysql -u root -p
and enter the password$ CREATE DATABASE crypto;
$ USE crypto;
$ CREATE TABLE users(name varchar(50), email varchar(30), username varchar(30), password varchar(100));
$ CREATE TABLE port5000(number varchar(10), hash varchar(64), previous varchar(64), sender varchar(30), recipient varchar(30, amount varchar(30), nonce varchar(20));
$ CREATE TABLE port5001(number varchar(10), hash varchar(64), previous varchar(64), sender varchar(30), recipient varchar(30, amount varchar(30), nonce varchar(20));
This is for 2 ports, for multiple ports make multiple tables and thus make changes in the list of connected tables in the app.py file accordinglyAssuming you have git, follow the following process
Clone the Git Repo:
$ git clone https://github.com/AsRaNi1/R-Cell.git
Go into the Repo directory
$ cd ../R-Cell
Run the app.py
file in the directory with a port number
$ python app.py 5000
Run app.py
again but this time witha different port number, 5001
$ python app.py 5001
2 local-host server address will open on the 2 different terminals
Register 2 accounts on the 2 different ports and thus there 2 ports become 2 different users. For more users make more tables and add them in the list of connected users in app.py
Now show this to your friends and boast about how you've created your own crypto-currency and that you're going to become a millionaire๐ค
The making of this project tackled numerous obstacles. Some were tricky, while some were very easy to solve.
Here are a few things we are planning on adding in the future
A very special thanks to the mentors!!