📝 docs: add overview section to README

This commit is contained in:
2026-03-05 17:48:35 +07:00
parent b593299f60
commit cb2475cff1
2 changed files with 34 additions and 12 deletions

View File

@ -1,15 +1,18 @@
# Elysia with Bun runtime <div align="center">
<img src="https://i.ibb.co.com/HfrLhRDc/Group-15.png" width="360" />
<h4>A simple anime streaming platform with community feature integration</h4>
</div>
## Getting Started ## Overview
To get started with this template, simply paste this command into your terminal:
```bash
bun create elysia ./elysia-example
```
## Development Syzne TV was born from a simple frustration: watching anime online shouldnt feel like fighting through layers of intrusive ads and popups. Many platforms today prioritize aggressive monetization over user experience, and somewhere along the way, the joy of watching got lost.
To start the development server run:
```bash
bun run dev
```
Open http://localhost:3000/ with your browser to see the result. ## Tech Stack
- **Runtime**: Bun (v1.3)
- **Framework**: Elysia (latest)
- **Database**: PostgreSQL 18
- **ORM**: Prisma (v7.0)
- **Caching**: Redis (v8.4)
- **Authentication**: JWT
- **Monitoring**: Sentry

View File

@ -0,0 +1,19 @@
import { AppError } from "../../../helpers/error/instances/app";
import { ErrorForwarder } from "../../../helpers/error/instances/forwarder";
import { findSystemPreferenceService } from "../../systemPreference/services/internal/findSystemPreference.service";
import { findAllActiveHeroBannerRepository } from "../repositories/GET/findAllActiveHeroBanner.repository";
export const getActiveHeroBannerService = async () => {
try {
const isHeroBannerEnabled = await findSystemPreferenceService(
"HERO_BANNER_ENABLED",
"boolean",
);
if (!isHeroBannerEnabled)
throw new AppError(403, "Hero Banner is disabled");
return await findAllActiveHeroBannerRepository();
} catch (error) {
ErrorForwarder(error);
}
};