This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
copper:academy:congress:test [2015/12/10 03:42] Bryan Sullivan |
copper:academy:congress:test [2015/12/10 03:57] (current) Bryan Sullivan |
||
---|---|---|---|
Line 144: | Line 144: | ||
</code> | </code> | ||
+ | |||
+ | === Setup the Congress Test Webapp === | ||
+ | |||
+ | <code> | ||
+ | # Clone Copper (if not already cloned in user home) | ||
+ | cd ~/git | ||
+ | if [ ! -d ~/git/copper ]; then git clone https://gerrit.opnfv.org/gerrit/copper; fi | ||
+ | |||
+ | # Copy the Apache config | ||
+ | sudo cp ~/git/copper/components/congress/test-webapp/www/ubuntu-apache2.conf /etc/apache2/apache2.conf | ||
+ | |||
+ | # Point proxy.php to the Congress server per your install | ||
+ | sed -i -- "s/192.168.10.117/$CONGRESS_HOST/g" \ | ||
+ | ~/git/copper/components/congress/test-webapp/www/html/proxy/index.php | ||
+ | |||
+ | # Copy the webapp to the Apache root directory and fix permissions | ||
+ | sudo cp -R ~/git/copper/components/congress/test-webapp/www/html /var/www | ||
+ | sudo chmod 755 /var/www/html -R | ||
+ | |||
+ | # Make webapp log directory and set permissions | ||
+ | mkdir ~/logs | ||
+ | chmod 777 ~/logs | ||
+ | |||
+ | # Restart Apache | ||
+ | sudo service apache2 restart | ||
+ | </code> | ||
+ | |||
+ | === Using the Test Webapp === | ||
+ | Browse to the trusty-copper server IP address. | ||
+ | |||
+ | Interactive options are meant to be self-explanatory given a basic familiarity with the Congress service and data model. But the app will be developed with additional features and UI elements. |