First, install the following:
To clone the repository, first install (if necessary):
and then clone the repository in your preferred directory, for example:
cd /home/$USER
git clone https://github.com/FSolidM/smart-contracts.git
This makes the 'project root' for the git repo /home/$USER/smart-contracts
.
Install packages with npm in the project root (smart-contracts
):
cd /home/$USER/smart-contracts
npm install
npm install webgme
npm install -g bower
bower install
Start mongodb locally by running the mongod
executable in your mongodb installation (you may need to create a data
directory or set --dbpath
). For example:
cd /home/$USER
mkdir sc_data
mongod --dbpath ./sc_data
wait until you see a line that says "[initandlisten] waiting for connections on port 27017".
Then, in a new terminal window, run npm start
from the project root (smart-contracts
) to start. For example:
cd /home/$USER/smart-contracts
npm start
After the webgme server is up and there are no error messages in the console, open a valid address in the browser to start using the Smart Contracts. The default is http://127.0.0.1:8888/, you should see all valid addresses in the console.
Click Create New…
to create a new project.
After entering a project name of your choice, import the seed SC
to start working on smart contracts!