If you don't know what the server is for, check this repository Raito-Manga. This module contains 3 drivers including MHR
, DM5
,MHG
.
The driver is responsible for handling how the data is fetched. Each source has its own driver. There are two types of drivers: passive and active. A passive driver fetches data only when the client is requesting it. Active drivers fetch data regardless of client requests. You can write your driver by extending the BaseDriver
or ActiveDriver
classes. Check out the provided driver as an example. Feel free to create a pull request.
The drivers are ordered based on the recommended level.
This driver fetches the manga information from the reverse-engineered mobile API server. Its source is the same as DM5
but faster in responding.
Official link: click here
This driver scraped the manga information from the website. It is slow and extremely unstable due to its strict request limit. However, it has the most up-to-date manga.
Official link: click here
This driver scraped the manga information from the website. Its source is the same as MHR
but stabler, as the website won't update frequently.
Official link: click here
This server can also be used as a CMS server by enabling the CMS in the configuration file. To access the management system, use the front-end from Raito-Admin-Panel.
-
Create a
config.json
file based on theconfig_template.json
. -
Create a
docker-compose.yml
file like this:
version: "3.7"
services:
raito-server:
image: nohackjustnoobb/raito-server
container_name: raito-server
restart: unless-stopped
ports:
- "3000:3000"
volumes:
- ./config.json:/app/config.json:ro
- Create the container
sudo docker compose up -d
Make sure that you have Conan, and cmake
installed before setting up.
# 1. Clone this repository
git clone https://github.com/nohackjustnoobb/Raito-Server.git
cd Raito-Server
# 2. Create and Edit the config file
cp config_template.json config.json
nano config.json
# 3. Install the dependencies
conan profile detect
conan install . --output-folder=build --build=missing
# 4. Build the server
cd build
cmake .. -DCMAKE_TOOLCHAIN_FILE=conan_toolchain.cmake -DCMAKE_BUILD_TYPE=Release
make
# 5. Run the server
chmod +x Raito-Server
./Raito-Server
You can execute the commands one by one or copy all of them at once and create a shell script.