SolTweet source code
About
SolTweet is a Twitter clone written in Solidity. Solidity is the language used to write Smart Contracts, or programmable transactions, on the Ethereum network.
Getting started
-
Run tests
yarn test
yarn test-frontend
yarn test-truffle
Frontend
yarn start-frontend
orcd soltweet-frontend; yarn start
Backend
IDE
Tools
- Install truffle
npm install -g truffle
cd /usr/local/lib/node_modules/truffle
npm install [email protected]
- Install ganache
- Launch ganache and (optionally) specify port (defaults to
7545
) - (Optional) set port in
truffle.js
module.exports = {
// See <http://truffleframework.com/docs/advanced/configuration>
// to customize your Truffle configuration!
networks: {
development: {
host: "localhost",
port: 7545,
network_id: "*" // Match any network id
}
}
};
Running/Compiling
-
Run unit tests see debugging w/ truffle cli
truffle test
-
Compile (run migration) see running migrations
truffle migrate