api.enime.moe
api.enime.moe copied to clipboard
An API service for developers to quickly access the anime info and sources
Enime API
Enime API is an open source API service for developers to access anime info (as well as their video sources)
Installation
Prerequisites
To deploy Enime API, you need following services:
- Redis - You can get a free hosting at https://upstash.com/
- PostgresSQL - You can get a free hosting at https://planetscale.com/
- Node.js (>=v16) - You can install it at https://nodejs.org/en/download/
- Pnpm - You can install it at https://pnpm.io/
Steps
- Install dependencies with
pnpm install - Create a
.envfile at the root of the project with the following properties:
PORT={the port that application is going to run on}
DATABASE_URL={the postgres database connection url}
REDIS_HOST={Redis host}
REDIS_PORT={Redis port}
REDIS_PASSWORD={Redis password}
- Initialize prisma with
pnpm prisma:generate - Run
pnpm run devand the application will start at desginated port (default 3000 if not explicitly set)
Docker
- Run
docker pull enime/api:1.0 - Plug the environment variables in (If you don't know how to do this please Google)
Docker-Compose
- Refer to
docker-compose.ymlin the project root to proceed
Support
- We use Discord for quick suggestions & bug reports, please join here
Credit
- https://github.com/consumet/consumet.ts - Some of the scraper logic from various anime sites
- https://github.com/consumet/consumet-api - Used as a backup scraper
- https://github.com/AniAPI-Team/AniAPI - Inspiration, as well as a bit of the Gogoanime scraping logic
