PageRenderTime 21ms CodeModel.GetById 29ms RepoModel.GetById 0ms app.codeStats 0ms

/README.md

https://bitbucket.org/fabianbadoi/tripwire
Markdown | 83 lines | 67 code | 16 blank | 0 comment | 0 complexity | 876035de85337bf80deff2ee153b67e9 MD5 | raw file
  1. # README #
  2. Some things have changed, read carefully - also Docker has some isssues yet, recommend not using it or helping solve the issues.
  3. The landing page twitter feed won't work since the one I used requires a private token, I will have to find a new way to do it later.
  4. ### Tripwire - EVE Online wormhole mapping web tool ###
  5. * MIT license
  6. * [Learn Markdown](https://bitbucket.org/tutorials/markdowndemo)
  7. ### Setup guide for Linux ###
  8. Requirements:
  9. * PHP7+ (older requires polyfill for public/login.php as documented in that file)
  10. * php-mbstring must be installed
  11. * MySQL (or some flavor of MySQL - needed because database EVENTS)
  12. * A my.cnf MySQL config file example is located in `.docker/mysql/my.cnf`
  13. * CRON or some other scheduler to execute PHP scripts
  14. Setup:
  15. * Create a `tripwire` database using the export located in `.docker/mysql/tripwire.sql`
  16. * Create an EVE dump database, define it's name later in `config.php`. Download from: https://www.fuzzwork.co.uk/dump/ To download the latest use the following link: https://www.fuzzwork.co.uk/dump/mysql-latest.tar.bz2
  17. * Clone the Tripwire repo to where you are going to serve to the public OR manually download repo and copy files yourself
  18. * Copy `db.inc.example.php` to `db.inc.php` - modify file per your setup
  19. * Copy `config.example.php` to `config.php` - modify file per your setup
  20. * Create an EVE developer application via https://developers.eveonline.com/applications
  21. * EVE SSO `Callback URL` should be: `https://your-domain.com/index.php?mode=sso`
  22. * Use the following scopes:
  23. esi-location.read_location.v1
  24. esi-location.read_ship_type.v1
  25. esi-ui.open_window.v1
  26. esi-ui.write_waypoint.v1
  27. esi-characters.read_corporation_roles.v1
  28. esi-location.read_online.v1
  29. esi-characters.read_titles.v1
  30. * Settings go in the `config.php` file
  31. * Modify your web server to serve Tripwire from the `tripwire/public` folder so the files like `config.php` and `db.inc.php` are not accessible via URL
  32. * Setup a CRON or schedule for `system_activity.cron.php` to run at the top of every hour. CRON: `0 * * * * php /dir/to/system_activity.cron.php`
  33. * Setup a CRON or schedule for `account_update.cron.php` to run every 3 minutes or however often you want to check for corporation changes. CRON: `*/3 * * * * php /dir/to/account_update.cron.php`
  34. ### Setup guide for Docker ###
  35. Note: MySQL is setup without a root password - make sure you have a secure host machine.
  36. Note: Be sure to properly fully shutdown Docker, and quit! Otherwise you will have issues starting the MySQL container
  37. * Install Docker for your environment: https://www.docker.com/
  38. * Run `docker-compose up --build`
  39. * Copy db.inc.example.php to db.inc.php
  40. * Copy config.example.php to config.php
  41. * Modify the constants with your own settings in both files
  42. * Create an EVE developer application via https://developers.eveonline.com/applications
  43. * EVE SSO `Callback URL` should be: `https://your-domain.com/index.php?mode=sso`
  44. * Use the following scopes:
  45. esi-location.read_location.v1
  46. esi-location.read_ship_type.v1
  47. esi-ui.open_window.v1
  48. esi-ui.write_waypoint.v1
  49. esi-characters.read_corporation_roles.v1
  50. esi-location.read_online.v1
  51. esi-characters.read_titles.v1
  52. * Settings go in the `config.php` file
  53. * Modify your web server to serve Tripwire from the `tripwire/public` folder so the files like `config.php` and `db.inc.php` are not accessible via URL
  54. * Setup a CRON or schedule for `system_activity.cron.php` to run at the top of every hour. CRON: `0 * * * * php /dir/to/system_activity.cron.php`
  55. * Setup a CRON or schedule for `account_update.cron.php` to run every 3 minutes or however often you want to check for corporation changes. CRON: `*/3 * * * * php /dir/to/account_update.cron.php`
  56. * MySQL connection settings will be the server `mysql` with the user `root` with an empty password
  57. * Create a new table for the EVE dump, specify the name in `db.inc.php` for `EVE_DUMP`
  58. * Import using the dump downloaded from: https://www.fuzzwork.co.uk/dump/ To download the latest use the following link: https://www.fuzzwork.co.uk/dump/mysql-latest.tar.bz2
  59. * Create a new table for the actual Tripwire data, use the name `tripwire`
  60. * Create a `tripwire` database using the export located in `.docker/mysql/tripwire.sql`
  61. ### Contribution guidelines ###
  62. * Base off of production
  63. * Look over issues, branches or get with me to ensure it isn't already being worked on
  64. ### Who do I talk to? ###
  65. * Josh Glassmaker AKA Daimian Mercer (Project lead / Creator)
  66. * Tripwire Public in-game channel
  67. * Discord: https://discord.gg/xjFkJAx