Skip to content

Browsing an archive

Lukas Rosenstock edited this page Mar 20, 2017 · 1 revision

phpADNSite can be used to browse and serve your app.net posts if you have created an archive prior to the "ADNpocalypse". This page quickly explains how to do that:

  1. Make sure you have PHP and composer installed on your machine.
  2. Create a directory in which you want to install phpADNSite and change to that directory in a terminal.
  3. Run the following command to download phpADNSite and its dependencies: composer create-project "lukasros/phpadnsite" . dev-master
  4. Extract the archive that you've exported from ADN. There'll be one file ending in -posts.json, you'll only need that one in the next step.
  5. Copy the following file into a text editor and change the values for username under backend_config and filename under storage_config, then store it as config.php in your directory.
  6. Start the PHP webserver: php -S 0.0.0.0:9000
  7. Open your browser and go to http://localhost:9000/ and see your ADN posts.

config.php template/example:

<?php
 return array(
  'domains' => array(
   '*' => array(
    'backend_config' => array(
     'username' => 'lukasros' // <- replace this value
    ),
    'theme_config' => array('name' => 'bootstrap-default')
    )
  ),
  'plugins' => array(),
  'backend' => array(
   'class' => 'PhpADNSite\Core\StorageClient',
    'config' => array(
     'storage_class' => 'PhpADNSite\PostStorages\ADNExportStorage',
     'storage_config' => array(
      'filename' => '/Users/lukas/Downloads/appdotnet-data-lukasros-1489524235/appdotnet-data-lukasros-1489524235-posts.json' // <- replace this value
     )
    )
   )
  );

Clone this wiki locally