Requirements
MyCocktail requires:
- Servlet container (Apache Tomcat, Glassfish, JBoss, etc.)
- Compatible Web browser: Mozilla Firefox, Opera, Chrome, or Safari. Internet Explorer (not fully compatible).
- Flash plug-in installed in the web browser.
Deploy the WAR
The MyCocktail distribution contains the WAR MyCocktail.war, it should be deployed in a Servlet Container.
Once the project is deployed, the folder which are contained in the WAR are unzipped. We have to enter in the deployed folder and open the file in “afrous-config.js” in folder “js/afrous” has to be configured.
var afrous;
if (!afrous) afrous = {};
(function() {
afrous.packages = {};
/*************** SERVER CONFIGURATION ***********************/
afrous.baseURL = "[http://<DOMAIN>[:<PORT>]/MyCocktail"]
afrous.packages.scriptBaseURL = afrous.baseURL+"/js/afrous";
/*************** SERVER CONFIGURATION ***********************/
})();
<DOMAIN> has to be substituted by the domain where is published de application and <PORT> by the port if it is necessary. For instance:
http://www.ict-romulus.eu/MyCocktail or
http://localhost:8080/MyCocktail.
Database
Enter in the "database" folder (in MyCocktail distribution) and launch this command:
./start-db.sh (Linux or MAC) start-db.bat (Windows)
To stop the database enter in the "database" folder and launch this command:
./stop-db.sh (Linux or MAC) stop-db.bat (Windows)
Run MyCocktail
MyCocktail is published by the servlet container where you have made the deploy usually you can access to it these URLs:
MyCocktail Mashup Builder:
http://<DOMAIN>/MyCocktail
MyCocktail Page Editor:
http://<DOMAIN>/MyCocktail/editor.html