...
To run ambari-web with ambari-server integration
$ cd AMBARI_DIR
$ mvn compile clean package -Dweb -DskipTests=true
Note that currently the mvn command does not put ambari-web in the Maven-generated package. This will be fixed in the future.
$ cd AMBARI_DIR/ambari-server/ambari/target/ambari-server-dist/ambari-server
$ java -cp etc/ambari-server/conf/:lib/ambari-server/* org.apache.ambari.server.controller.AmbariServer
Hit http://localhost:8080 from your web browser
Note:
For quick development turnaround even while running ambari-web with ambari-server integration, create a symbolic link under ambari-server target folder and point it to your ambari-web/public folder
$ cd AMBARI_DIR/ambari-server/ambari/target/ambari-server-*dist/ambari-server*
$ rm -rf web
$ ln -s AMBARI_DIR/ambari-web/public web
$ cd AMBARI_DIR/ambari-web
$ brunch watch
This way, you can simply modify your source files in AMBARI_DIR/ambari-web and changes will be available immediately from localhost:8080.
...