How to install and execute Truffle on an Ubuntu 16.04

Truffle is a development environment, testing framework and asset pipeline for Ethereum, aiming to make life as an Ethereum developer easier.
See details on truffle website:

This was made on an Ubuntu 16.04


Install packages

First, update and install packages

Install NodeJs

Install NodeJs to execute the DAPP

Install Truffle

Install Truffle packages

Install testrpc

Testprc uses ethereumjs to simulate full client behavior and make developing Ethereum
Install testrpc

Create a project

Init Truffle project

Deploy contracts

testrpc should be launched
Deploy contracts on local chain

It should launch transaction on testrpc process output

Create DAPP

To build your frontend, run:

Launch server for DAPP testing

Output should display

Optional: add -p option to change port

Go to http://localhost:8080 to see the Dapp
You can send Metacoin to an address (ex: 0x2742c08e81208d01ff48a8c0f7d7c738625f92f5 as see above from testrpc)
Each transactions are displayed on the testrpc process output