An opensource airline game.
Live at https://www.airline-club.com/
Version 2 alpha at https://v2.airline-club.com
- install git :D of course
- clone this repo ;D , to setup for V2 use
git checkout v2
- Install at least java development kit 8+
- The 2 main projects are : airline-web (all the front-end stuff) and airline-data (the backend simulation).(Optional) If you want to import them to Scala IDE (if you want to code), goto the folder of those and run
activator eclipse
to generate the eclipse project files and then import those projects into your IDE - This runs on mysql db (install veresion 5.x, i heard newest version 8.x? might not work). install Mysql server and then create database
airline
, create a usersa
, for password you might useadmin
or change it to something else. Make sure you change the corresponding password logic in the code to match that (https://github.com/patsonluk/airline/blob/master/airline-data/src/main/scala/com/patson/data/Constants.scala#L99) airline-web
has dependency onairline-data
, hence navigate toairline-data
and runactivator publishLocal
. If you see encoding error, add character_set_server=utf8mb4 to your /etc/my.cnf and restart mysql. it's a unicode characters issue, see https://stackoverflow.com/questions/10957238/incorrect-string-value-when-trying-to-insert-utf-8-into-mysql-via-jdbc- You would need to initialize the DB and data on first run. In
airline-data
, runactivator run
, then choose the one that runsMainInit
. It will take awhile to init everything. - (Optional) For the "Flight search" function to work, install elastic search 7.x, see https://www.elastic.co/guide/en/elasticsearch/reference/current/install-elasticsearch.html . For windows, I recommand downloading the zip archive and just unzip it - the MSI installer did not work on my PC
- (Optional) For airport image search and email service for user pw reset - refer to https://github.com/patsonluk/airline/blob/master/airline-web/README
- Now run the background simulation by staying in
airline-data
, runactivator run
, select optionMainSimulation
. It should now run the backgroun simulation - Open another terminal, navigate to
airline-web
, run the web server byactivator run
- The application should be accessible at
localhost:9000
Some icons by Yusuke Kamiyamane. Licensed under a Creative Commons Attribution 3.0 License