Skip to content

An Open Source API used to read manga content easily from different manga pages.

License

Notifications You must be signed in to change notification settings

TheMineWay/mangas-api

Repository files navigation

Node.js CI

Mangas API

An Open Source API that provides a standard way to query for mangas from different manga readers.

0. Booting the project

0.0. Setup project files

First of all, you need to clone this repository on the desired machine. You can do this by running:

git clone https://github.com/TheMineWay/mangas-api.git

Then, you will find a file named example.env, you need to make a copy of this file and name it .env. This file will contain the app settings. Once you have the .env file created, modify the contents of this file.

You have to provide values for the PORT and API_KEYS variables.

  • PORT: expects a number. It muct be an available and valid port.
  • API_KEYS: expects a JSON array of strings. The strings represent the API keys that can be used to interact with this server. There is no limit of API keys. Example: ["supersecretapikey_1","supersecretapikey_2"]

0.1. Execute the project

0.1.0 Execute using Docker 🐳

You need to have Docker Engine installed. If you don't have it you can follow the official setup guide.

Having the Docker Engine installed, you can setup and start the container by running:

docker compose up

There are two docker-compose.yml files, one for development (docker-compose-dev.yml) and another for production (docker-compose.yml). By default the docker compose command will use the production one.

1. Endpoints documentation

You can check the Open API of the server by settings to true the OPEN_API_DOCS variable on the .env file. Once the project is recompiled you will find in http://machine-ip-address:port/documentation an interactive endpoints list.

About

An Open Source API used to read manga content easily from different manga pages.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published