Chronicalc is a space-themed, AI-powered interactive web app built with Python Flask and SQLite. It features:
- 🚀 A calculator set in a 3D cosmic background
- 👽 A World UFO Day quiz with voice narration
- 📊 A lightweight backend that stores user scores
- 🌍 Responsive design for both desktop and mobile
- 🗣️ Text-to-speech for quiz questions (gTTS)
- Frontend: HTML, CSS, JS, Three.js, responsive design
- Backend: Python Flask
- Database: SQLite
- AI Tools: gTTS for narration, OpenAI-ready
- Deployment: Render.com
- What does UFO stand for?
- When is World UFO Day celebrated?
- What year was the Roswell Incident?
- Who directed "Close Encounters of the Third Kind"?
- Where is Area 51 located?
- Project Blue Book conducted by?
- Who wrote "War of the Worlds"?
- First use of "Flying Saucer"
- UFO Hotspot State in the US
Voice narration plays for each question using Python's gTTS.
chronicalc/
├── app.py
├── database.db
├── generate_voice.py
├── templates/
│ ├── index.html
│ ├── quiz.html
│ └── intro.html
├── static/
│ ├── css/style.css
│ ├── js/quiz.js
│ ├── js/three.min.js
│ ├── js/space.js
│ └── assets/
│ ├── milkyway-bg.jpg
│ ├── ufo.png
│ └── audio/ (gTTS audio)
├── .gitignore
├── README.md
├── render.yaml
└── requirements.txt
from gtts import gTTS
import os
questions = [
"What does UFO stand for?",
"When is World UFO Day celebrated?",
"What year was the Roswell Incident?",
"Who directed Close Encounters of the Third Kind?",
"Where is Area 51 located?",
"Project Blue Book was conducted by which organization?",
"Who wrote The War of the Worlds?",
"Who coined the term Flying Saucer?",
"Which state is the UFO hotspot in the USA?"
]
os.makedirs("static/assets/audio", exist_ok=True)
for i, question in enumerate(questions):
tts = gTTS(question)
path = f"static/assets/audio/q{i+1}.mp3"
tts.save(path)
print(f"Saved: {path}")__pycache__/
*.pyc
*.db
.env
*.mp3
static/assets/audio/*
git commit -m "🚀 Add UFO quiz with gTTS narration, intro page, Three.js visuals, and optimized UI"
- Create
render.yaml:
services:
- type: web
name: chronicalc
env: python
buildCommand: "pip install -r requirements.txt"
startCommand: "python app.py"
plan: free- Push your code to GitHub
- Go to render.com
- Click New Web Service > Connect to GitHub
- Select your repo and add
render.yaml
- Minified JS and CSS where possible
- Responsive design using Flexbox and media queries
- Optimized image sizes and lazy loading
- Single HTTP request for question set in JS
Project Title: Chronicalc Challenge Overview: Create an immersive web app that narrates astronomical concepts, integrates 3D visuals and calculates while educating users via themed quizzes. Team: Raghuvaran Damodaran - Code Developer and Video Editor
➡️ Use this as a landing page or welcome intro before the main app!
-
Open VS Code and open the
chronicalc/folder. -
Create a virtual environment:
python -m venv venv source venv/bin/activate # or venv\Scripts\activate on Windows
-
Install requirements:
pip install -r requirements.txt
-
Generate quiz narration audio:
python generate_voice.py
-
Run the app:
python app.py
-
Visit
http://localhost:5000/introfor the intro, or/for calculator,/quizfor quiz.
MIT License
- Flask, SQLite
- gTTS (Google Text-to-Speech)
- NASA Milky Way imagery
- Open Source Fonts and Icons