Schiffeversenken-Server is a project mainly written in PHP, it's free.
Server for saving user informations, logins and scores for the game "Schiffeversenken"
Checkout into htdocs folder
git clone git://github.com/newLoki/Schiffeversenken-Server.git /path/to/htdocs/schiffeversenken-server
now you can access the site by typing http://
For
Insert your connection information into application/configs/application.ini.
After this, setup your Database by creating a new database (all <____> are Placeholders):
mysql -u <UserName> -p <Password> | CREATE DATABASE ships;
.
Last step is to execute liquibase, our database versioning tool, first time.
To do this, you have to go to the build folder and execute the following command (<___> are also placeholders):
java -jar liquibase.jar --driver=com.mysql.jdbc.Driver \ --classpath=databasedriver/mysql-connector-java-5.1.17-bin.jar \ --changeLogFile=../data/sql/changelog.xml \ --url="jdbc:mysql://127.0.0.1:<MysqlPort>/ships" \ --username=<UserName> \ --password=<Password> \ migrate
Every time there is a change on databasescheme it is enought to run the command above,
but using update
instead of migrate
.