An Open Source API that provides a standard way to query for mangas from different manga readers.
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"]
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.
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.