MangaDB API is a powerful RESTful API designed to provide comprehensive data and metadata about manga volumes, series, staff, and publishers. With MangaDB API, you can collect and curate manga-related data, making it easier to build powerful applications and services for manga enthusiasts.
You can find the API docs here.
Before proceeding with the installation, ensure that you have Docker installed in your system. You can install the latest version of Docker by following the instructions given in the official Docker documentation.
To set up the project, follow the steps below:
- Clone the repository.
$ git clone https://github.com/g3ru1a/mangadb-api- Install the composer dependencies using the following command in your terminal:
$ docker run --rm \
-u "$(id -u):$(id -g)" \
-v $(pwd):/var/www/html \
-w /var/www/html \
laravelsail/php81-composer:latest \
composer install --ignore-platform-reqs- Copy
.env.exampleto.env.
$ cp .env.example .env- Generate the app key:
$ php artisan key:generate- Or within docker:
$ docker exec -d <container_name> php artisan key:generate- Set the
WWWGROUPandWWWUSERto your user ID, if it's not1000, in the.envfile.
WWWGROUP=1000
WWWUSER=1000
- Set the database name, user, and password you want in the
.envfile.
DB_DATABASE=laravel
DB_USERNAME=sail
DB_PASSWORD=password
- Add your S3 information in the
.envfile.
AWS_ACCESS_KEY_ID=<your-access-key>
AWS_SECRET_ACCESS_KEY=<your-secret-access-key>
AWS_DEFAULT_REGION=<your-region>
AWS_BUCKET=<your-bucket>
- Add your Mailer information in the
.envfile.
MAIL_MAILER=smtp
MAIL_HOST=sandbox.smtp.mailtrap.io
MAIL_PORT=2525
MAIL_USERNAME=<username>
MAIL_PASSWORD=<password>
MAIL_ENCRYPTION=tls
- Set your image_cdn URL in the
.envfile.
IMAGE_CDN_URL="https://cdn.yourwebsite.com/"
- Run Sail using the following command:
$ ./vendor/bin/sail upRun migrations using the following command:
$ php artisan migrate:freshIf you want to run migrations using Docker, use the following command:
$ docker exec -d <container_name> php artisan migrate:freshBelow is a list of common issues:
- If you encounter permission issues for the logs folder, check this issue on StackOverflow.
When contributing to this repository, please first discuss the change you wish to make via github discussions, before making a change.
Please note we have a code of conduct, please follow it in all your interactions with the project.
In order to ensure that the MangaDB community is welcoming to all, please review and abide by the Code of Conduct.
If you discover a security vulnerability within MangaDB, please DM Gerula on Twitter @g3ru1a or on Discord. All security vulnerabilities will be promptly addressed.
The MangaDB is open-sourced software licensed under the LGPL-3.0.