Björn Wärmedal ea367f0aa6 Getting Public Activities | 3 years ago | |
---|---|---|
app | 3 years ago | |
bootstrap | 3 years ago | |
database | 3 years ago | |
public | 3 years ago | |
resources | 3 years ago | |
routes | 3 years ago | |
storage | 3 years ago | |
tests | 3 years ago | |
.editorconfig | 3 years ago | |
.env.example | 3 years ago | |
.gitignore | 3 years ago | |
.styleci.yml | 3 years ago | |
README.md | 3 years ago | |
artisan | 3 years ago | |
composer.json | 3 years ago | |
composer.lock | 3 years ago | |
phpunit.xml | 3 years ago |
I'm learning web dev the hard way :D
Follow me as I implement an ActivityPub server in the micro-framework Lumen, one commit at a time. I'll make all the mistakes and ask all the stupid questions, so you don't have to!
To run this (don't run this in production), simply clone the repo and run composer install
from the repo root directory.
I want to do stuff with the actual Fediverse as quickly as possible.
In this commit I've installed a package called guzzlehttp, and added an HTTP call to the base route ('/').
After pulling this, run composer update
and php -S localhost:8000 -t public
to start the server locally. When you call localhost:8000 (for example with curl localhost:8000
) it'll in turn fetch the public timeline from the mastodon instance at floss.social.
Useful? No, not yet. But we're touching the Fediverse!
Laravel Lumen is a stunningly fast PHP micro-framework for building web applications with expressive, elegant syntax. We believe development must be an enjoyable, creative experience to be truly fulfilling. Lumen attempts to take the pain out of development by easing common tasks used in the majority of web projects, such as routing, database abstraction, queueing, and caching.
Documentation for the framework can be found on the Lumen website.
Thank you for considering contributing to Lumen! The contribution guide can be found in the Laravel documentation.
If you discover a security vulnerability within Lumen, please send an e-mail to Taylor Otwell at taylor@laravel.com. All security vulnerabilities will be promptly addressed.
The Lumen framework is open-sourced software licensed under the MIT license.
The Lumen-based ActivityPub Server is also licensed under the same license.