Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yogyy/fool-translations-api
novel collection api
https://github.com/yogyy/fool-translations-api
bun hono lucia-auth oslo sqlite
Last synced: 8 days ago
JSON representation
novel collection api
- Host: GitHub
- URL: https://github.com/yogyy/fool-translations-api
- Owner: yogyy
- Created: 2024-09-30T15:26:21.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2025-01-25T16:03:55.000Z (16 days ago)
- Last Synced: 2025-01-25T17:18:38.846Z (16 days ago)
- Topics: bun, hono, lucia-auth, oslo, sqlite
- Language: TypeScript
- Homepage:
- Size: 121 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# installation
You need [bun](https://bun.sh/) installed.
```bash
bun install
```## Generate Migration and create Sqlite database
```bash
bun generate
```### Run Migration
```bash
bun migrate
```### Run Seeding (optional)
```bash
bun seed
```### testing
make sure you're running seeding
```bash
bun test
```### run server
```bash
bun dev
open http://localhost:4000
```### Available Routes
#### Auth Routes
```bash
GET /api/v1/auth/validate
POST /api/v1/auth/signup
POST /api/v1/auth/signin
POST /api/v1/auth/signout
```#### Novel Routes
```bash
GET /api/v1/novels
GET /api/v1/novels/featured/hot
GET /api/v1/novels/featured/top
GET /api/v1/novels/:idGET /api/v1/chapters
GET /api/v1/chapters/:idGET /api/v1/favorites/:novelId
POST /api/v1/favoritesGET /api/v1/subscribes/:novelId
POST /api/v1/subscribes/notifyGET /api/v1/ratings/:novelId
POST /api/v1/ratings/rate
```#### Admin Routes
```bash
POST /api/v1/admin/novel
PUT /api/v1/admin/novel/:id
DELETE /api/v1/admin/novel/:id
POST /api/v1/admin/chapter
PUT /api/v1/admin/chapter/:id
DELETE /api/v1/admin/chapter/:id
```#### Notification Routes
```bash
GET /api/v1/notifications
PATCH /api/v1/notifications
DELETE /api/v1/notifications
```