A RESTful API for the upcoming webtoon reader and downloader application.
- Overview
- Features
- Getting Started
- Configuration
- API Endpoints
- Technologies Used
- Contributing
- License
OWR-API provides endpoints to fetch, read, and download webtoons, supporting the webtoon reader and downloader application.
- Download and save webtoons
- Fetch webtoons, episodes list and content
- Node.js
- npm/pnpm package manager
- Clone the repository:
git clone https://github.com/Open-Webtoon-Reader/OWR-API.git cd OWR-API
- Install dependencies:
pnpm install
Create a .env
file in the root directory with the following variables:
# Server
SERVER_TYPE="http"
BIND_ADDRESS="0.0.0.0"
HTTP_PORT="3000"
HTTPS_PORT="3001"
# SSL
SSL_KEY_FILE=""
SSL_CERT_FILE=""
# API
PREFIX="api/v1/"
# Security
ADMIN_KEY="admin"
- Start the server:
npx prisma generate npx prisma migrate deploy npx prisma db seed pnpm run start
- The API will be available at
http://localhost:3000
(depending of your.env
configuration).
- Create a new service on your Pterodactyl panel from nodejs egg.
- Configure the startup command as the following:
if [ ! -d "OWR-API" ]; then git clone https://github.com/Open-Webtoon-Reader/OWR-API; fi; cd OWR-API || exit; git pull; if [ ! -f ".env" ]; then cp .env.example .env; fi; npm install --force; npx prisma generate; npx prisma migrate deploy; npx prisma db seed; npm run start
The API endpoints will be available at http://localhost:3000/api/
(depending of your .env
configuration).
- TypeScript
- NestJS
- Prisma
- RESTful API
Contributions are welcome! Please fork the repository, create a feature branch, and submit a pull request.
This project is licensed under the MIT License. See the LICENSE file for more details.