A minimal environment for Solidity smart contract development.
This was written in a way to make the simplest development environment possible, with minimum design choices. The focus is more on the basic structure of dApp projects, and less on advanced best practices. Ideally, anyone will be able to pick this up and learn the fundamentals of writing and testing Ethereum smart contracts in Solidity with Node.js and Mocha!
- Script for compiling Solidity smart contract code (Calculator.sol)
- Test scripts with Mocha to check for any potential issues
- Folder for contract files
- Calculator.sol: Basic calculator contract.
- Allows GitHub to recognize your .sol contract syntax! Credits to kinrezC for this tip.
- Try to browse over the files written; what is going on in them? How do they relate to one another?
- Install the required dependencies listed in package.json by running:
npm install
- Run the compile.js script through:
npm run compile
ornode compile.js
- Run the test.js script through:
npm test
ormocha -- test.js
If you have any suggestions or ideas, email me at luis@serebii.io, or make a pull request! I am more than happy to chat :)
- Luiserebii