getting-started.rst 704 B

123456789101112131415161718192021
  1. Getting Started
  2. =============================================
  3. OpenZeppelin integrates with `Truffle <https://github.com/ConsenSys/truffle/>`_, an Ethereum development environment. Please install Truffle and initialize your project with ``truffle init``::
  4. npm install -g truffle
  5. mkdir myproject && cd myproject
  6. truffle init
  7. To install the OpenZeppelin library, run::
  8. npm init # follow instructions
  9. npm install zeppelin-solidity
  10. After that, you'll get all the library's contracts in the `node_modules/zeppelin-solidity/contracts` folder. You can use the contracts in the library like so::
  11. import "zeppelin-solidity/contracts/ownership/Ownable.sol";
  12. contract MyContract is Ownable {
  13. ...
  14. }