MangaFinderAPI is a simple API to manage and serve manga files.
-
Clone the repository:
git clone https://github.com/Picsou06/MangaFinderAPI.git cd MangaFinderAPI -
Install the dependencies:
npm install
- Configure the
.envfile with your database access information. Rename the.env.exemplefile in the root directory to.envand update the following content:DB_HOST=localhost DB_PORT=3306 DB_USER=yourusername DB_PASSWORD=yourpassword DB_NAME=yourdatabasename DB_TABLE=yourtablename WEBSITE=yourwebsite PORT=3000
- Place your manga files in the
mangasdirectory. - Each manga should be placed in a folder named in the format:
manga_name - language(e.g.,Naruto - en). - Inside each manga folder, each chapter should be in its own subfolder.
- Each manga folder should contain a
cover.jpgimage representing the cover of the manga.
Example structure:
mangas/
├── Naruto - en/
│ ├── cover.jpg
│ ├── Chapter 1/
│ │ ├── page1.jpg
│ │ ├── page2.jpg
│ ├── Chapter 2/
│ │ ├── page1.jpg
│ │ ├── page2.jpg
├── One Piece - fr/
│ ├── cover.jpg
│ ├── Chapter 1/
│ │ ├── page1.jpg
│ │ ├── page2.jpg
-
Start the API using the following command:
node app.js
-
The API should now be running and accessible at the specified port.
Enjoy using MangaFinderAPI!