Objective of OOD/OOP
- data abstraction/ADT
- as is (in client code)
Note: THIS GUIDE IS NOT TESTED YET! The following steps are meant to create an environment for deploying app with tomcat and mysql with a war file. Assuming you are using Linux. For the Mac local version, please go here.
Install Docker following the guild here.
Go here and follow the step there to get the mysql image/Dockerfile. It's a good idea to create a new empaty folder for the files from the repo. Replace the "XXXXXXXX" with desired username/password.
$ sudo docker run -d --name db -e MYSQL_USER="XXXXXXXX" -e MYSQL_PASSWORD="XXXXXXXX" -e MYSQL_ROOT_PASSWORD="XXXXXXXX" -e MYSQL_DATABASE="rekomendi" -p 3306:3306 mysql
Note: The following steps are meant to create an environment for deploying app with tomcat and mysql with a war file. Assuming you are using mac. For the Linux server version, please go here.
If you don't like the convenient way, you can do it manually. Install Docker, VM (for running boot2docker) and boot2docker (for running Docker on Mac)