/bahnplan

Place to share my travel plans.

Primary LanguagePHPGNU General Public License v2.0GPL-2.0

#bahnplan

Place to share my travel plans.

Set up

In the folder inc, you can find a file called Configuration.sample.php. Duplicate it and delete ".sample", so you have Configuration.php. Next to some text boxes which you might want to change, you can find some default database config:

"db" => [
	"host" => "localhost",
	"user" => "root",
	"pass" => "",
	"db" => "bahnplan"
]

Change this to your database config. At this point, you may also change the other things as you surely don't want to promote my Travel plans, but your own. footer supports markdown. Please enclosure all " with backslashes (\).

Twitter

In order to grab data from Twitter (eg avatar pictures), Twitter requires you to create an application at apps.twitter.com. You'll have to do the following steps:

  1. Create an app (name it whatever you want).
  2. Change the Access Level to "Read and write".
  3. Create yourself an Access Token in the "Keys and Access Tokens"-tab. You will find that button on the bottom of the page.
  4. Then open your Configuration.php and change the following code:
"twitter" => [
	"app" => [
		"key" => "YOUR_APP_KEY",
		"secret" => "YOUR_APP_SECRET"
	],
	"user" => [
		"token" => "YOUR_USER_TOKEN",
		"secret" => "YOUR_USER_SECRET"
	]
]

Change the things to the stuff you have from Twitter.

Access

You can access admin/ with credentials: jannik : 123456. You may want to change these things in the database.

Makes use of:

Thanks to

Me on Twitter

@confuzd_