Aaron Parecki 3b40a47aac | 9 years ago | |
---|---|---|
controllers | 9 years ago | |
lib | 9 years ago | |
public | 9 years ago | |
scripts | 9 years ago | |
tests | 9 years ago | |
views | 9 years ago | |
.gitignore | 9 years ago | |
CONTRIBUTING.md | 9 years ago | |
LICENSE | 9 years ago | |
README.md | 9 years ago | |
composer.json | 9 years ago | |
composer.lock | 9 years ago | |
config.template.php | 9 years ago | |
phpunit.xml | 9 years ago | |
schema.sql | 9 years ago |
Telegraph is an API for sending Webmentions.
See https://telegraph.p3k.io/api
Fork and clone this repo.
Install MySQL, composer, beanstalk, and phpunit if they're not already
installed, e.g. brew install mysql composer beanstalk phpunit
.
Start MySQL and beanstalkd
.
Copy config.template.php
to config.test.php
. Update the appropriate values
for your local environment if necessary.
Run these commands to install the dependencies, create a local database, and run the tests:
$ composer install
$ mysql [ARGS] -e 'CREATE DATABASE telegraph;'
$ mysql [ARGS] < schema.sql
$ phpunit
# Hack hack hack!
Telegraph photo: https://www.flickr.com/photos/nostri-imago/3407786186
Telegraph icon: https://thenounproject.com/search/?q=telegraph&i=22058