Skip to content
No description, website, or topics provided.
PHP TSQL Shell
Branch: master
Clone or download
Latest commit ea6411e Jun 9, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
migrations
src
uploads Add user log in, upload, dev server stuff Mar 9, 2019
.gitignore
.htaccess Add notification for new followers Apr 19, 2019
CONTRIBUTING.md
README.md Fix problem with test server patch Jun 7, 2019
api.patch Add a basic local test server setup Jun 5, 2019
composer.json Add markdown to upload, write Jun 9, 2019
composer.lock Add markdown to upload, write Jun 9, 2019
config.php.example Tidy up code Mar 23, 2019
docker-compose.yml Add user log in, upload, dev server stuff Mar 9, 2019
inbox.patch Fix problem with test server patch Jun 7, 2019
index.php Add settings page for user profile info Jun 9, 2019
package-lock.json
package.json Add a basic local test server setup Jun 5, 2019
start.sh
test-server.json

README.md

Artpub

A work-in-process image and media gallery that federates with ActivityPub. This project is in early development and not ready for production use.

If you'd like to help out with this project, send me a message or read how to get started bellow and on the contributing page.

Features

Uploading Submissions

A submission is an object that consists of one or more media files. Currently accepted media are image, audio and text. Submissions can also have text descriptions.

Writing notes

Write notes at /write; they act as microblog statuses.

Following

Activitypub users can follow the activity of artpub users in the usual way by subscribing to username@domain.

Artpub users can also follow the activity of remote activitypub users in a similar way. Notifications will be listed on the /notes page.

Development

NB: If anything in this documentation is missing, unclear or incorrect, please raise an issue!

Requirements:

  • PHP7
  • pdo_mysql
  • Composer
  • docker
  • docker-compose

Create a config.php file with the following contents:

<?php
$config = array(
 'db_name' => 'art',
 'db_user' => 'root',
 'db_pass' => 'root',
 'db_host' => '172.18.0.2',
 'disable_signup' => false
);

Run composer install.

Run ./start.sh - your site should now be up and running on localhost:3030.

More information is in the contributing document.

Test server

To run the test server:

  1. Run npm i
  2. Copy test-server.json to node_modules/bot-node/config.json
  3. Apply the patches inbox.patch and api.patch to their respective js fields in node_modules/bot-node/routes
  4. cd to node_modules/bot-node and run node index.js
  5. Follow the instructions in node_modules/bot-node/README.md to create test users and post messages
You can’t perform that action at this time.