diff --git a/Release Notes.txt b/Release Notes.txt index e69de29b..5e65810e 100644 --- a/Release Notes.txt +++ b/Release Notes.txt @@ -0,0 +1,5 @@ +Vesrion 0.1 +=========== +Includes an implementation of the basic flow for +the appointment reservation use case and unit testing +for the model classes of the system. \ No newline at end of file diff --git a/install.sh b/install.sh new file mode 100644 index 00000000..1bd4acbb --- /dev/null +++ b/install.sh @@ -0,0 +1,36 @@ +#! /bin/bash + +clear + +echo "=========================================" +echo " " +echo "Easy!Appointments Installation Script " +echo " " +echo "=========================================" + +printf "Before you continue ensure that your MAMP +\nserver is running and you already know the +\nfolder path in which the application is +\ngoing to be installed.\n\n" + +read -p "Press Enter to Continue" -n 1 +if [[ ! $REPLY =~ ^[Yy]$ ]] +then + # Copy Application Files + printf "\n\nEnter destination directory:" + read DEST + cp -r "easy_appointments" $DEST + + # Install MySQL Database + printf "\n>>>Installing database ..." + /Applications/MAMP/Library/bin/mysql -uroot -p + /Applications/MAMP/Library/bin/mysql "CREATE DATABASE IF NOT EXISTS easy_appointments" + /Applications/MAMP/Library/bin/mysql "easy_appointments" < "easy_appointments.sql" + + printf "\n\n>>>Review your configuration.php file before trying to use the application." + + # End of install operation + printf "\n\n======================================" + printf "\nInstallation completed successfully!" + read +fi