|
1 | | -# Krishnasagar - WIP |
2 | | - |
3 | | -Krishnasagar is a serverless video localization pipeline that automates transcription, translation, and dubbing of content using Google Cloud AI services. |
4 | | - |
5 | | -> **Status:** The **Web Project** is currently in **Beta Release**. All other projects (Cloud Functions, etc.) are in **Dev Locked Mode**. |
6 | | -
|
7 | | -## Setup & Deployment |
8 | | - |
9 | | -gcloud services enable storage.googleapis.com \ |
10 | | - cloudfunctions.googleapis.com \ |
11 | | - run.googleapis.com \ |
12 | | - speech.googleapis.com \ |
13 | | - translate.googleapis.com \ |
14 | | - texttospeech.googleapis.com \ |
15 | | - videointelligence.googleapis.com \ |
16 | | - youtube.googleapis.com \ |
17 | | - logging.googleapis.com \ |
18 | | - monitoring.googleapis.com |
19 | | - |
20 | | - |
21 | | -gsutil mb -l asia-south1 gs://krishnasagar-videos-raw |
22 | | -gsutil mb -l asia-south1 gs://krishnasagar-videos-processed |
23 | | -gsutil mb -l asia-south1 gs://krishnasagar-videos-final |
24 | | - |
25 | | -### extract_audio |
26 | | -gcloud functions deploy krishnasagar-extract-audio \ |
27 | | - --runtime python39 \ |
28 | | - --trigger-resource krishnasagar-videos-raw \ |
29 | | - --trigger-event google.storage.object.finalize \ |
30 | | - --entry-point extract_audio \ |
31 | | - --memory 512MB \ |
32 | | - --region asia-south1 \ |
33 | | - --source cloud_functions/extract_audio |
34 | | - |
35 | | -### transcribe_audio |
36 | | - gcloud functions deploy krishnasagar-transcribe-audio \ |
37 | | - --runtime python39 \ |
38 | | - --trigger-resource krishnasagar-videos-processed \ |
39 | | - --trigger-event google.storage.object.finalize \ |
40 | | - --entry-point transcribe_audio \ |
41 | | - --memory 512MB \ |
42 | | - --region asia-south1 \ |
43 | | - --source cloud_functions/transcribe_audio |
44 | | - |
45 | | -### translate_text |
46 | | - gcloud functions deploy krishnasagar-translate-text \ |
47 | | - --runtime python39 \ |
48 | | - --trigger-resource krishnasagar-videos-processed \ |
49 | | - --trigger-event google.storage.object.finalize \ |
50 | | - --entry-point translate_text \ |
51 | | - --memory 512MB \ |
52 | | - --region asia-south1 \ |
53 | | - --source cloud_functions/translate_text |
54 | | - |
55 | | -### generate_audio |
56 | | - gcloud functions deploy krishnasagar-generate-voice \ |
57 | | - --runtime python39 \ |
58 | | - --trigger-resource krishnasagar-videos-processed \ |
59 | | - --trigger-event google.storage.object.finalize \ |
60 | | - --entry-point generate_audio \ |
61 | | - --memory 512MB \ |
62 | | - --region asia-south1 \ |
63 | | - --source cloud_functions/generate_audio |
64 | | - |
65 | | -### generate_subtitles |
66 | | - gcloud functions deploy krishnasagar-generate-subtitles \ |
67 | | - --runtime python39 \ |
68 | | - --trigger-resource krishnasagar-videos-processed \ |
69 | | - --trigger-event google.storage.object.finalize \ |
70 | | - --entry-point generate_subtitles \ |
71 | | - --memory 512MB \ |
72 | | - --region asia-south1 \ |
73 | | - --source cloud_functions/generate_subtitles |
74 | | - |
75 | | -### Build the Docker Image |
76 | | - gcloud builds submit --tag gcr.io/potent-airfoil-454402-e4/krishnasagar-video-merger cloud_run/merge_audio_video |
77 | | - |
78 | | -### Deploy the Service |
79 | | - |
80 | | -gcloud run deploy krishnasagar-video-merger \ |
81 | | - --image gcr.io/potent-airfoil-454402-e4/krishnasagar-video-merger \ |
82 | | - --region asia-south1 \ |
83 | | - --platform managed \ |
84 | | - --allow-unauthenticated |
| 1 | +# Saileela Rahasya |
| 2 | + |
| 3 | +**Saileela Rahasya** is a progressive web application dedicated to uncovering the hidden spiritual instructions ("Bodhakatha") within the miraculous stories ("Leela") of Sai Baba. |
| 4 | + |
| 5 | +This project, originally architected in `Full E2E Plan.md`, has evolved into a full-featured PWA that provides devotees with a structured, immersive platform to explore Sai Baba's teachings. |
| 6 | + |
| 7 | +--- |
| 8 | + |
| 9 | +> **Current Status:** |
| 10 | +> - **Web App:** v1.2.1 (Production Release) |
| 11 | +> - **Backend:** Next.js Server Actions + Prisma + Neon (Postgres) |
| 12 | +> - **Authentication:** Clerk |
| 13 | +> - **Infrastructure:** Vercel |
| 14 | +
|
| 15 | +--- |
| 16 | + |
| 17 | +## 🌟 Core Features |
| 18 | + |
| 19 | +The application is built around five core pillars of spiritual engagement: |
| 20 | + |
| 21 | +1. **Leela (The Narrative)**: A chronological library of Sai Baba's divine plays, linking narrative articles directly to source video content. |
| 22 | +2. **Bodhakatha (The Instruction)**: Semantic organization of content by virtue (e.g., Faith, Patience), focusing on the "Why" behind the miracles. |
| 23 | +3. **Live Stream (Darshan)**: Real-time video integration for live events and a curated archive of past discourses and Aartis. |
| 24 | +4. **Audio (Bhajan)**: A specialized audio player for daily Aartis, Mantras, and Bhajans, optimized for background listening. |
| 25 | +5. **Ask (Personal Guidance)**: A private, ticket-based inquiry system allowing users to seek personalized spiritual guidance from the Saileela Rahasya team. |
| 26 | + |
| 27 | +## 🛠 Tech Stack |
| 28 | + |
| 29 | +* **Framework:** Next.js 14+ (App Router) |
| 30 | +* **Styling:** Tailwind CSS + Custom Design System (Ochre Theme) |
| 31 | +* **Database:** PostgreSQL (Neon) via Prisma ORM |
| 32 | +* **Auth:** Clerk (Custom Appearance) |
| 33 | +* **Icons:** Lucide React + Custom SVG Assets |
| 34 | +* **Deployment:** Vercel |
| 35 | + |
| 36 | +## 📂 Project Structure |
| 37 | + |
| 38 | +- **`web/`**: Main Next.js application. |
| 39 | + - `src/app`: App Router pages and layouts. |
| 40 | + - `src/components`: Reusable UI components (Atomic design). |
| 41 | + - `src/lib`: Utilities for DB, Auth, and helpers. |
| 42 | + - `src/actions`: Server Actions for data mutation. |
| 43 | + - `src/context`: React Context for global state (Audio, Inquiry). |
| 44 | +- **`data/`**: Schemas and migration scripts for content generation. |
| 45 | + |
| 46 | +## 🚀 Getting Started |
| 47 | + |
| 48 | +### Prerequisites |
| 49 | +- Node.js 18+ |
| 50 | +- npm/pnpm |
| 51 | + |
| 52 | +### Installation |
| 53 | + |
| 54 | +1. **Clone the repository:** |
| 55 | + ```bash |
| 56 | + git clone https://github.com/Karrot-Tech/krishnasagar.git |
| 57 | + cd krishnasagar/web |
| 58 | + ``` |
| 59 | + |
| 60 | +2. **Install dependencies:** |
| 61 | + ```bash |
| 62 | + npm install |
| 63 | + ``` |
| 64 | + |
| 65 | +3. **Environment Setup:** |
| 66 | + Create a `.env` file in `web/` based on `.env.example`, populating keys for Clerk, Database URL, and Admin settings. |
| 67 | + |
| 68 | +4. **Run Development Server:** |
| 69 | + ```bash |
| 70 | + npm run dev |
| 71 | + ``` |
| 72 | + Open `http://localhost:3000` to view the app. |
| 73 | + |
| 74 | +## 📜 Historic Context |
| 75 | + |
| 76 | +This repository (`krishnasagar`) originally began as a serverless video localization pipeline. While those cloud functions remain in the history, the primary focus has shifted entirely to the **Saileela Rahasya Web PWA**. The original architectural vision can be found in `Full E2E Plan.md`. |
0 commit comments