stolaar / anime

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Anime Repository

This repository hosts two applications: a REST API backend written in Golang and a web application frontend written in React. The backend provides endpoints for fetching animes and episodes, as well as scraping episode sources from a third-party website to embed as iframes in the web application. The frontend consists of two pages: one for listing animes and another for listing and playing anime episodes.

Table of Contents

Backend

Libraries Used

Endpoints

  • Fetch Animes

    • GET /api/animes
    • Fetch a list of all available animes.
  • Fetch Episodes

    • GET /api/animes/:id
    • Fetch a list of episodes for a specific anime.
  • Scrape Episode Source

    • GET /episodes/:id/src
    • Scrape the source of an episode from a third-party website and embed it as an iframe.

Frontend

Technologies Used

  • TailwindCSS: for styling
  • TypeScript: for type-safe JavaScript
  • Vite: for fast development and build tooling

Pages

  • Anime List

    • Displays a list of all available animes.
  • Episode List and Player

    • Displays a list of episodes for a selected anime.
    • Allows playing an episode by embedding it as an iframe.

Setup

Backend setup

  1. Install dependencies
make install-api
  1. Run Migrations
make migrate
  1. Run
make dev-api

or run both

make -j2

Frontend setup

  1. Install dependencies
make install-client
  1. Run
make dev-client

About


Languages

Language:Go 64.5%Language:TypeScript 25.9%Language:JavaScript 2.9%Language:Dockerfile 2.2%Language:Less 1.6%Language:HTML 1.5%Language:Makefile 1.1%Language:Shell 0.2%