Compare commits
No commits in common. "8762f28b27478a4845c2d113335d2dde68e40c5c" and "b2d56fca6d15a3a9b53d60c803cd763bb8c03f98" have entirely different histories.
8762f28b27
...
b2d56fca6d
10
CHANGELOG.md
10
CHANGELOG.md
@ -1,10 +0,0 @@
|
|||||||
# Changelog
|
|
||||||
|
|
||||||
## [1.0.0] - YYYY-MM-DD
|
|
||||||
### Ajouté
|
|
||||||
- Recherche full texte.
|
|
||||||
- Archivage de liens (TXT et HTML).
|
|
||||||
- Gestion des tags.
|
|
||||||
- Navigation vers les liens entrants et sortants.
|
|
||||||
- Interface de recherche avec surlignage des résultats.
|
|
||||||
|
|
@ -1,26 +0,0 @@
|
|||||||
{
|
|
||||||
"id": "be.zoemp.cinekids",
|
|
||||||
"title": "Cine Kids",
|
|
||||||
"author": "Morgan",
|
|
||||||
"description": "file://DESCRIPTION.md",
|
|
||||||
"changelog": "file://CHANGELOG.md",
|
|
||||||
"tagline": "Ciné-agrégateur multi-source pour enfants.",
|
|
||||||
"version": "1.0.0",
|
|
||||||
"healthCheckPath": "/search",
|
|
||||||
"httpPort": 3000,
|
|
||||||
"addons": {
|
|
||||||
"localstorage": {}
|
|
||||||
},
|
|
||||||
"manifestVersion": 2,
|
|
||||||
"website": "https://zoemp.be/cine-kids",
|
|
||||||
"contactEmail": "morgan@zoemp.be",
|
|
||||||
"icon": "file://logo.png",
|
|
||||||
"tags": [
|
|
||||||
"cinema",
|
|
||||||
"children",
|
|
||||||
"cloudron"
|
|
||||||
],
|
|
||||||
"minBoxVersion": "7.5.0",
|
|
||||||
"optionalSso": false
|
|
||||||
}
|
|
||||||
|
|
@ -1,18 +0,0 @@
|
|||||||
# Cine Kids
|
|
||||||
|
|
||||||
Cine Kids est un agrégateur multi-source pour trouver rapidement les avis, classifications d’âge et résumés de films pour enfants.
|
|
||||||
Utile pour les parents qui veulent éviter la merde industrielle et savoir ce que leurs enfants vont regarder.
|
|
||||||
|
|
||||||
## Fonctionnalités principales
|
|
||||||
|
|
||||||
- Recherche simultanée sur plusieurs bases (Cinecheck, CommonSense, Filmages, etc).
|
|
||||||
- Synthèse et fusion des résultats (titre, année, résumé, âge recommandé, pictogrammes…).
|
|
||||||
- Interface simple : tu cherches, tu obtiens toutes les infos utiles d’un coup.
|
|
||||||
- Donne accès direct aux fiches originales pour vérif rapide.
|
|
||||||
|
|
||||||
Idéal pour :
|
|
||||||
- Filtrer les films grand public.
|
|
||||||
- Repérer d’un coup d’œil les critères d’âge, la violence, la pub ou les contenus toxiques.
|
|
||||||
- Éviter de perdre 20 minutes sur 5 sites différents pour chaque film.
|
|
||||||
|
|
||||||
|
|
@ -1,23 +0,0 @@
|
|||||||
FROM debian:stable-slim
|
|
||||||
|
|
||||||
RUN apt-get update && apt-get install -y curl ca-certificates bash xz-utils && apt-get clean && rm -rf /var/lib/apt/lists/*
|
|
||||||
|
|
||||||
ARG NODE_VERSION=20.12.2
|
|
||||||
RUN curl -fsSL https://nodejs.org/dist/v${NODE_VERSION}/node-v${NODE_VERSION}-linux-x64.tar.xz \
|
|
||||||
| tar -xJ -C /usr/local --strip-components=1
|
|
||||||
|
|
||||||
RUN mkdir -p /app/code /app/data
|
|
||||||
|
|
||||||
COPY ./ /app/code/
|
|
||||||
COPY ./public/ /app/code/public/
|
|
||||||
WORKDIR /app/code/
|
|
||||||
|
|
||||||
RUN npm ci --omit=dev
|
|
||||||
|
|
||||||
VOLUME ["/app/data"]
|
|
||||||
|
|
||||||
COPY start.sh /app/code/
|
|
||||||
RUN chmod +x /app/code/start.sh
|
|
||||||
|
|
||||||
CMD ["/app/code/start.sh"]
|
|
||||||
|
|
@ -6,7 +6,7 @@ const path = require('path');
|
|||||||
const BASE_URL = 'https://www.filmspourenfants.net';
|
const BASE_URL = 'https://www.filmspourenfants.net';
|
||||||
|
|
||||||
// Setup disk cache
|
// Setup disk cache
|
||||||
const CACHE_DIR = process.env.CACHE_DIR || '/app/data/cache';
|
const CACHE_DIR = path.join(__dirname, '../cache');
|
||||||
if (!fs.existsSync(CACHE_DIR)) fs.mkdirSync(CACHE_DIR, { recursive: true });
|
if (!fs.existsSync(CACHE_DIR)) fs.mkdirSync(CACHE_DIR, { recursive: true });
|
||||||
|
|
||||||
// Cache operations
|
// Cache operations
|
||||||
|
@ -5,7 +5,7 @@ const path = require('path');
|
|||||||
const BASE_URL = 'https://www.filmstouspublics.fr';
|
const BASE_URL = 'https://www.filmstouspublics.fr';
|
||||||
|
|
||||||
// Setup disk cache
|
// Setup disk cache
|
||||||
const CACHE_DIR = process.env.CACHE_DIR || '/app/data/cache';
|
const CACHE_DIR = path.join(__dirname, '../cache');
|
||||||
if (!fs.existsSync(CACHE_DIR)) fs.mkdirSync(CACHE_DIR, { recursive: true });
|
if (!fs.existsSync(CACHE_DIR)) fs.mkdirSync(CACHE_DIR, { recursive: true });
|
||||||
|
|
||||||
// Load cache from disk if available
|
// Load cache from disk if available
|
||||||
|
8
build.sh
8
build.sh
@ -1,8 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
set -x
|
|
||||||
set -eu
|
|
||||||
|
|
||||||
docker build --platform linux/amd64 -t dr.zoemp.be/cine-kids:$(cat VERSION) -f Dockerfile.cloudron .
|
|
||||||
docker push dr.zoemp.be/cine-kids:$(cat VERSION)
|
|
||||||
cloudron update --image dr.zoemp.be/cine-kids:$(cat VERSION) --app cine-kids
|
|
||||||
|
|
@ -1,38 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
# Read current version
|
|
||||||
VERSION=$(cat VERSION)
|
|
||||||
|
|
||||||
# Split version into components
|
|
||||||
IFS='.' read -r MAJOR MINOR PATCH <<< "$VERSION"
|
|
||||||
|
|
||||||
# Decide which part to bump based on the commit type
|
|
||||||
case $1 in
|
|
||||||
major)
|
|
||||||
((MAJOR++))
|
|
||||||
MINOR=0
|
|
||||||
PATCH=0
|
|
||||||
;;
|
|
||||||
minor)
|
|
||||||
((MINOR++))
|
|
||||||
PATCH=0
|
|
||||||
;;
|
|
||||||
patch)
|
|
||||||
((PATCH++))
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
echo "Usage: $0 {major|minor|patch}"
|
|
||||||
exit 1
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
# Construct the new version
|
|
||||||
NEW_VERSION="$MAJOR.$MINOR.$PATCH"
|
|
||||||
|
|
||||||
# Save the new version to the VERSION file
|
|
||||||
echo "$NEW_VERSION" > VERSION
|
|
||||||
echo "Version bumped to $NEW_VERSION"
|
|
||||||
|
|
||||||
git add VERSION
|
|
||||||
git tag "v$MAJOR.$MINOR.$PATCH"
|
|
||||||
git push origin "v$MAJOR.$MINOR.$PATCH"
|
|
11
dev.sh
11
dev.sh
@ -1,11 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
set -x
|
|
||||||
set -eu
|
|
||||||
|
|
||||||
docker build --platform linux/amd64 -t dr.zoemp.be/cine-kids:$(cat VERSION) -f Dockerfile.cloudron .
|
|
||||||
docker run --platform linux/amd64 --rm -it -v "$(pwd)/data:/app/data/" -p 3000:3000 dr.zoemp.be/cine-kids:$(cat VERSION)
|
|
||||||
|
|
||||||
# Optionnel : test d'API locale après boot
|
|
||||||
# sleep 2
|
|
||||||
# curl http://localhost:3000/search?q=test || echo "API failed (normal si pas de data mock)"
|
|
||||||
|
|
@ -1,20 +0,0 @@
|
|||||||
services:
|
|
||||||
cine-kids:
|
|
||||||
build:
|
|
||||||
context: .
|
|
||||||
dockerfile: Dockerfile.cloudron
|
|
||||||
ports:
|
|
||||||
- "3000:3000"
|
|
||||||
volumes:
|
|
||||||
- ./app:/app/code
|
|
||||||
- ./data:/app/data
|
|
||||||
environment:
|
|
||||||
- CLOUDRON_APP_ORIGIN=https://your-cloudron-origin.com
|
|
||||||
- CLOUDRON_APP_DOMAIN=yourdomain.cloudron
|
|
||||||
user: "${MY_UID}:${MY_GID}"
|
|
||||||
healthcheck:
|
|
||||||
test: ["CMD", "curl", "-f", "http://localhost:3000/search?q=test"]
|
|
||||||
interval: 2s
|
|
||||||
timeout: 2s
|
|
||||||
retries: 3
|
|
||||||
|
|
@ -32,7 +32,6 @@
|
|||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<img src="/logo.png" alt="Logo Cine Kids" style="display:block;margin:30px auto 10px;max-width:130px;height:auto;">
|
|
||||||
<h1>Ciné-agrégateur Multi-Source</h1>
|
<h1>Ciné-agrégateur Multi-Source</h1>
|
||||||
<div class="searchbox">
|
<div class="searchbox">
|
||||||
<input type="text" id="q" placeholder="Ex: Dune, Spider-Man, Oppenheimer..." />
|
<input type="text" id="q" placeholder="Ex: Dune, Spider-Man, Oppenheimer..." />
|
BIN
public/logo.png
BIN
public/logo.png
Binary file not shown.
Before Width: | Height: | Size: 124 KiB |
@ -1,5 +1,4 @@
|
|||||||
const express = require('express');
|
const express = require('express');
|
||||||
const path = require('path');
|
|
||||||
const cors = require('cors');
|
const cors = require('cors');
|
||||||
const cinecheck = require('./aggregators/cinecheck-adapter');
|
const cinecheck = require('./aggregators/cinecheck-adapter');
|
||||||
const commonsense = require('./aggregators/commonsense-adapter');
|
const commonsense = require('./aggregators/commonsense-adapter');
|
||||||
@ -10,7 +9,7 @@ const { mergeResults } = require('./merge');
|
|||||||
|
|
||||||
const app = express();
|
const app = express();
|
||||||
app.use(cors());
|
app.use(cors());
|
||||||
app.use(express.static(path.join(__dirname, 'public')));
|
|
||||||
app.get('/search', async (req, res) => {
|
app.get('/search', async (req, res) => {
|
||||||
const q = req.query.q;
|
const q = req.query.q;
|
||||||
if (!q) {
|
if (!q) {
|
||||||
|
8
setup.sh
8
setup.sh
@ -1,8 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
set -euo pipefail
|
|
||||||
|
|
||||||
export MY_UID=$(id -u)
|
|
||||||
export MY_GID=$(id -g)
|
|
||||||
docker compose down
|
|
||||||
docker compose up --build --detach --timestamps
|
|
||||||
docker compose logs --follow | grep -E 'python|error|app'
|
|
Loading…
x
Reference in New Issue
Block a user