2.5 KiB
How to contribute
Test it locally
Using Docker
- Clone the repository
- Ensure your Docker daemon is running
- Copy
docker/php/env.exampletodocker/php/envand customize - Launch
make dev-docker-up - Launch
make dev-setup
The Docker php service serves wallabag on http://127.0.0.1:8000. Use make dev-docker-down when you want to tear the stack down and reset Docker volumes.
Run make dev-watch in another terminal while working on frontend assets so Encore rebuilds them automatically.
You'll then have:
- a PHP daemon with standalone web server
- a Redis database (to handle imports)
- a SQLite database to store articles
You can now access your wallabag instance using that url: http://127.0.0.1:8000
If you want to test using an other database than SQLite, uncomment the postgres or mariadb code from the compose.yaml file at the root of the repo. Also uncomment related line in the php section so the database will be linked to your PHP instance.
Using your own PHP server
- Ensure you are running PHP >= 8.2.
- Clone the repository
- Run
make devto bootstrap wallabag and start the built-in server indev - If you got some errors, fix them (they might be related to some missing PHP extension from your machine)
- If you only need to start the built-in server later, run
make run - Run
make dev-watchin another terminal if you are changing frontend assets
You can now access your wallabag instance using that url: http://127.0.0.1:8000
You found a bug
Please open a new issue.
To fix the bug quickly, we need some infos: please answer to the questions in the issue form.
If you have the skills, look for errors into PHP, server and application logs (see var/logs).
Note : If you have large portions of text, use Github's Gist service or other pastebin-like.
You want to fix a bug or to add a feature
Please fork wallabag and work with the master branch.
Run Tests and PHP formatter
All pull requests need to pass the tests and the code needs match the style guide.
The repository uses a GNU make Makefile. If your system ships a non-GNU make, use gmake for the commands below.
To run the tests locally run make test.
To run the PHP formatter run make fix-cs.
To run the PHPStan static analysis run make phpstan.
To run the JS linter run make lint-js.
To run the SCSS linter run make lint-scss.
To rebuild frontend assets automatically while developing run make dev-watch.