https://github.com/valiantlynx/manga-site-api
This is the api used by https://github.com/valiantlynx/manga-site
https://github.com/valiantlynx/manga-site-api
Last synced: 5 months ago
JSON representation
This is the api used by https://github.com/valiantlynx/manga-site
- Host: GitHub
- URL: https://github.com/valiantlynx/manga-site-api
- Owner: valiantlynx
- Created: 2023-05-02T03:28:19.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2024-05-04T02:41:04.000Z (about 1 year ago)
- Last Synced: 2024-12-29T14:36:05.558Z (5 months ago)
- Language: JavaScript
- Homepage: https://www.animevariant.com/
- Size: 50.7 MB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# manga scraper that can download manga and can save it in a database(pocketbase)
you have to set a simple pocketbase on port 8080. make sure to make three collections named manga, chapters, and imagesthis is their structure:
```javascript
manga:
{
"id": "string",
"title": "string",
"img": "url",
"tags": " string",
"latestChapter": "number",
"src": "url",
"description": "string",
"author": "string",
}chapters:
{
mangaId: "relation",
src: "url",
title: "string",
}images:
{
pageNumber: "number",
img: "url",
chapterId:"relation",
totalPages: "number",
chapterText: "string",
}
```# How to use
1. clone the repo
2. run `npm install`
3. run `npm start`# How to use the api
1. go to `localhost:8080/_/` the api is pocketbases api so you can use it like that### adding new projects with their own git history
```sh
git subtree add --prefix=apps/manga-site-api https://github.com/valiantlynx/manga-site-api.git master --squash
git subtree pull --prefix=apps/manga-site-api https://github.com/valiantlynx/manga-site-api.git master --squash
git subtree push --prefix=apps/manga-site-api https://github.com/valiantlynx/manga-site-api.git master
```