You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+27-7Lines changed: 27 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -3,21 +3,41 @@ Allows you to export JSON files of your most important data (questions, answers,
3
3
4
4
## Installation
5
5
6
-
1. I think this project requires PHP 7.3 or later, so be sure that your system complies.
6
+
There is no need to clone this repository, the installation works with PHP composer.
7
+
8
+
1. This is only tested on PHP 7.3, so be sure that your system complies.
7
9
1. Sign up at https://stackapps.com/apps/oauth/register to receive a Client ID, Client Secret, and Key. (It's free, easy, and fast.)
8
-
1. Create a Laravel project, and make sure that it works: https://laravel.com/docs/5.8/installation#installing-laravel
9
-
1. Add this package into your Laravel project: `vagrant@vboxHomestead:~/Code/MyLaravelProject$ composer require ryancwalsh/stack-exchange-backup-laravel:dev-master --prefer-source`
10
-
1. Run `php artisan vendor:publish`, and if it gives you a choice, choose to publish from this package.
10
+
1. Create a Laravel project, and make sure that it works:
1. Run _artisan_ in the parent folder of the app folder, and if it gives you a choice, choose to publish from this package
28
+
29
+
cd StackExchangeBackupLaravel/
30
+
php artisan vendor:publish
11
31
1. Edit your Laravel project's `.env` file to have your own StackApps values. A non-working sample is below.
12
32
1. Run `php artisan exportStackExchange`. (Note that `php artisan exportStackExchange --flushCache` is an available option to clear the cached access code value.)
13
33
1. Following the instructions in the terminal, you'll use your browser to visit a URL that will provide you with a temporary access token to paste into the terminal.
14
34
1. Finished! The JSON files will appear in your `/storage/app/StackExchange` folder.
0 commit comments