Giter VIP home page Giter VIP logo

raito-server-cpp's Introduction

Raito Server

If you don't know what the server is for, check this repository Raito-Manga. This module contains 3 drivers including MHR, DM5,MHG.

Drivers Information

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.

MHR - 漫畫人 / 漫畫社

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

MHG - 漫畫櫃

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

DM5 - 漫畫人 (Website)

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

Content management system (CMS)

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.

Quick Start

  1. Create a config.json file based on the config_template.json.

  2. 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
  1. Create the container
sudo docker compose up -d

Manual Setup (Not Recommended)

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.

raito-server-cpp's People

Contributors

nohackjustnoobb avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.