Skip to content

feat/add jikan api#109

Open
IbbyLabs wants to merge 5 commits into
Viren070:mainfrom
IbbyLabs:feat/add-jikan-api
Open

feat/add jikan api#109
IbbyLabs wants to merge 5 commits into
Viren070:mainfrom
IbbyLabs:feat/add-jikan-api

Conversation

@IbbyLabs

Copy link
Copy Markdown
Contributor
  • feat(jikan-api): add the Jikan API to template
  • fix(jikan-api): fix missing fs require, add secrets dir creation, and add Typesense healthcheck

IbbyLabs added 2 commits June 24, 2026 02:02
This commit adds the Jikan API to the project template, including necessary configuration files and instructions for setup.

- Remove duplicate DB_ADMIN__FILE from .env.compose (pointed to wrong secret; admin creds not mounted in jikan_rest)
- Fix YAML flow-sequence bracket spacing throughout compose.yaml
- Fix mongo-init volume source: ./mongo-init.js → ./mongo-init.sh
- Tighten secret file permissions in instructions: chmod 644 → chmod 600
- Correct RoadRunner supervisor key in instructions: supervisor.ttl → supervisor.exec_ttl
- Add .trim() to fs.readFileSync calls in mongo-init.sh to strip trailing newlines
… add Typesense healthcheck

- Add const fs = require('fs') to mongo-init.sh (fs was used but never imported)
- Add mkdir -p secrets to instructions.md setup snippet before redirect commands
- Add healthcheck to jikan_typesense service (wget on port 8108/health)
- Upgrade jikan_rest depends_on jikan_typesense from service_started to service_healthy
- Add trailing newline to instructions.md
@IbbyLabs IbbyLabs marked this pull request as draft June 24, 2026 15:49
@IbbyLabs

Copy link
Copy Markdown
Contributor Author

Going to test it first..

@IbbyLabs IbbyLabs force-pushed the feat/add-jikan-api branch from 8b1aa18 to 245b13f Compare June 24, 2026 22:10
IbbyLabs added 2 commits June 24, 2026 23:27
…wget

The typesense/typesense:0.24.1 image ships no wget/curl/nc, so the wget-based healthcheck always exited 127 and the container never became healthy, which blocked jikan_rest from starting (depends_on: service_healthy). Use bash (present in the image) with /dev/tcp to GET /health and confirm the server reports {"ok":true}.
…t/secrets

The six credential files created per instructions.md (db/redis/typesense usernames, passwords, API key) were untracked and at risk of being committed. Ignore the directory contents while keeping the .gitkeep placeholder tracked.
@IbbyLabs IbbyLabs marked this pull request as ready for review June 24, 2026 22:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant