Getting Started
Follow these simple steps to get Manga Hook up and running on your local machine:
1. Clone the Repository:
Open your terminal and run the following command to clone the Manga Hook repository:
git clone https://github.com/kiraaziz/mangahook-api2. Navigate to the Server Directory:
Change your working directory to the server folder:
cd server3. Install Dependencies:
Install the required dependencies using npm:
npm install4. Start the Express Server:
Launch the Manga Hook server by running the following command:
npm run startThis will start the server on port 3000.
Now that Manga Hook is running, let’s explore how to retrieve manga data.
List Manga
To list available manga, make a GET request to the following endpoint using a tool like Postman or Insomnia:
-
Endpoint:
GET http://localhost:3000/api/mangaList -
Example Response:
{"mangaList": [{"id": "1manga-oa952283","image": "https://ww6.mangakakalot.tv//mangaimage/manga-oa952283.jpg","title": "Attack On Titan","chapter": "chapter-139","view": "105.8M","description": "..."}// ... other manga entries],"metaData": {"totalStories": 10,"totalPages": 100,"type": [{"id": "newest","type": "Newest"}// ... other types],"state": [{"id": "Completed","type": "Completed"}// ... other states],"category": [{"id": "all","type": "ALL"}// ... 40 other categories]}}
Now you’re ready to explore and integrate Manga Hook into your projects. Feel free to use the provided API endpoints to access manga data and enhance your manga-related applications!
-
Response Format: The API will respond with data structured as follows:
interface MangaList {mangaList: [{id: String,image: String,title: String,chapter: String,view: String,description: String}],metaData: {totalStories: Number,totalPages: Number,type: [{id: String,type: String}],state: [{id: String,type: String}],category: [{id: String,type: String}],}}