This code base is a part of e-learning course to create a new cyptocurrency in Blockchain Ethereum Developer: Create a New Cryptocurrency with Ethereum hosted at Tosh Academy.
Learn how to Create a New Cryptocurrency in Blockchain.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine. Node.js uses an event-driven, non-blocking I/O model that makes it lightweight and efficient. The Node.js package ecosystem, npm, is the largest ecosystem of open source libraries in the world.
npm makes it easy for JavaScript developers to share and reuse code, and it makes it easy to update the code that you're sharing.npm is a way to reuse code from other developers, and also a way to share your code with them, and it makes it easy to manage the different versions of code.
Truffle is a development environment, testing framework and asset pipeline for Ethereum, aiming to make life as an Ethereum developer easier. With Truffle, you get:
Built-in smart contract compilation, linking, deployment and binary management. Automated contract testing with Mocha and Chai. Configurable build pipeline with support for custom build processes. Scriptable deployment & migrations framework. Network management for deploying to many public & private networks. Interactive console for direct contract communication. Instant rebuilding of assets during development. External script runner that executes scripts within a Truffle environment.
- Rpc client preferrably testrpc
- Installing Node.js [node]
If you're using OS X or Windows, the best way to install Node.js is to use one of the installers from the Node.js download page.If you're using Linux, you can use the installer, or you can check NodeSource's binary distributions to see whether or not there's a more recent version that works with your system.
$ sudo apt-get install nodejs
Test: Run node -v. To check the version the of installed nodejs.
- Install npm
Node comes with npm installed so you should have a version of npm. However, npm gets updated more frequently than Node does, so you'll want to make sure it's the latest version.
$ npm install npm@latest -g
Test: Run npm -v. To check the version the of installed npm.
- Clone the repository on your local machine.
$ git clone https://github.com/blockchain-council/coin-development.git
- "cd" into the cloned repository from command line.
$ cd ERC20-token-coin-development
- Then run the below command which lets the dependencies from package.json gets installed locally for this particular project. The major requirements are truffle, testrpc, babel-register and babel-polyfill.
$ npm install
- Then run the below command to start compling the contract:
$ truffle compile
You can also run truffle migrate and truffle test to compile your contracts, deploy those contracts to the network, and run their associated unit tests.
Be sure you're connected to an ethereum client before running these commands. If you're new, install testrpc to run a local blockchain RPC server. After that, simply run testrpc in a new tab.
Toshendra Sharma is the founder & CEO of RecordsKeeper, a Blockchain-based record keeping solution for businesses & also the founder of Toshblocks, A Blockchain Consulting & Development. Toshendra also founded Blockchain Council to bring elite Blockchain experts together on a single platform.
Earlier, he founded Appvigil (Wegilant) in Nov 2011 while pursuing my Masters in Application Security from IIT Bombay, India. Appvigil is the Mobile App Vulnerability Scanner on Cloud. He was heading the team as CEO. The company has won many awards & accolades under his leadership.
Toshendra has worked on many Ethereum based projects for many companies & individuals for their coins & Initial Coin Offering (ICO).
He is a well-known instructor & speaker in Blockchain space and taught more than 12,000 students worldwide spread in 148+ countries. He is also the part of Forbes India 30Under30 List of 2016 in Technology space.
You can find him on: