From 28b36e695486a8ababf83151f8f6dc44cf6d5018 Mon Sep 17 00:00:00 2001 From: Orionis Date: Thu, 5 Nov 2026 23:47:14 +0100 Subject: [PATCH] :sparkles: Init --- .gitignore | 7 + README.md | 87 + angular.json | 74 + package-lock.json | 7710 +++++++++++++++++++++++++++++++ package.json | 28 + proxy.conf.json | 6 + server/server.mjs | 154 + src/app/app.component.html | 2 + src/app/app.component.ts | 12 + src/app/data/flags.ts | 1 + src/app/data/geo.ts | 3 + src/app/data/items.ts | 37 + src/app/data/planet-textures.ts | 1 + src/app/data/space-quiz.ts | 52 + src/app/data/world.ts | 1 + src/app/orbit/orbit.ts | 194 + src/images/layers-2x.png | Bin 0 -> 70 bytes src/images/layers.png | Bin 0 -> 70 bytes src/images/marker-icon.png | Bin 0 -> 70 bytes src/images/marker-shadow.png | Bin 0 -> 70 bytes src/index.html | 13 + src/main.ts | 4 + src/styles.css | 685 +++ src/typings.d.ts | 12 + tsconfig.app.json | 9 + tsconfig.json | 31 + 26 files changed, 9123 insertions(+) create mode 100644 .gitignore create mode 100644 README.md create mode 100644 angular.json create mode 100644 package-lock.json create mode 100644 package.json create mode 100644 proxy.conf.json create mode 100644 server/server.mjs create mode 100644 src/app/app.component.html create mode 100644 src/app/app.component.ts create mode 100644 src/app/data/flags.ts create mode 100644 src/app/data/geo.ts create mode 100644 src/app/data/items.ts create mode 100644 src/app/data/planet-textures.ts create mode 100644 src/app/data/space-quiz.ts create mode 100644 src/app/data/world.ts create mode 100644 src/app/orbit/orbit.ts create mode 100644 src/images/layers-2x.png create mode 100644 src/images/layers.png create mode 100644 src/images/marker-icon.png create mode 100644 src/images/marker-shadow.png create mode 100644 src/index.html create mode 100644 src/main.ts create mode 100644 src/styles.css create mode 100644 src/typings.d.ts create mode 100644 tsconfig.app.json create mode 100644 tsconfig.json diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..271b8c6 --- /dev/null +++ b/.gitignore @@ -0,0 +1,7 @@ +node_modules/ +dist/ +.angular/ +out-tsc/ +server/*.db +npm-debug.log* +.DS_Store diff --git a/README.md b/README.md new file mode 100644 index 0000000..7936d74 --- /dev/null +++ b/README.md @@ -0,0 +1,87 @@ +# Orbit + +Quiz de géographie et d'espace (drapeaux, capitales, villes, lieux sur carte, planètes, +étoiles, galaxies, trous noirs) avec comptes locaux, boutique et boosters. + +Conversion du fichier unique `Orbit.html` en projet **Angular + TypeScript** utilisant le +builder d'application **Vite** (`@angular/build:application`), sans modification du contenu +d'origine. + +## Lancer le projet + +Le back de comptes (API Node + SQLite) et le front Angular fonctionnent ensemble : + +```bash +npm install + +# Terminal 1 : API des comptes (http://127.0.0.1:8787, base server/orbit.db) +npm run api + +# Terminal 2 : front en dev (http://localhost:4200, /api proxifié vers l'API) +npm start +``` + +Pour la préproduction : `npm run preview` (build puis service du front ET de l'API +sur http://127.0.0.1:8787). + + +## Structure + +``` +Orbit.html # fichier d'origine (conservé, inchangé) +├── package.json / angular.json / tsconfig*.json / proxy.conf.json +├── server/ +│ └── server.mjs # API comptes : Node pur, SQLite via node:sqlite +└── src/ + + ├── index.html # head d'origine (Tailwind CDN + config, Leaflet CDN) + ├── styles.css # CSS d'origine (