docs #24
27
README.md
27
README.md
@ -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 shouldn’t 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
|
||||||
|
|||||||
19
src/modules/heroBanner/services/.fuse_hidden000178f900000004
Normal file
19
src/modules/heroBanner/services/.fuse_hidden000178f900000004
Normal 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);
|
||||||
|
}
|
||||||
|
};
|
||||||
Reference in New Issue
Block a user