-

Rashi Phal – Google Firebase Web Hosting
Google Firebase Web Hosting Steps
-
Rashi Phal – Birth Chart Generation Logic
Birth Chart Generation Logic 1 – Create ‘appapigenerate-kundaliroute.ts’ File route.ts file uses the ‘vedic-astrology-api’ to calculate the birth chart. We passes the birth data to the route.ts file from the Kundali/page.tsx file. Then the route.ts file returns the calculated BirthChart as a response. 2 – Create ‘appkundalipage.tsx’ File create the kundali folder under it create the page.tsx file. This page.tsx file will contain the UI for the Kundali circular chart. 3 – Create ‘libmahadashavimshottari.ts’ File vimshottari.ts file will contain the calculation for the dasha, mahadasha, antardasha , pratyantara daasha. This will return the calculation table. 4 – Create ”/images/planets-clipart/Sun.png” File
-
Rashi Phal – ‘vedic-astrology-api’ setup
vedic-astrology-api setup 1 – Official URL https://www.npmjs.com/package/vedic-astrology-api 2 – Package Installation npm i vedic-astrology-api 3 – Replace Your next.config.ts import type { NextConfig } from "next"; const nextConfig: NextConfig = { reactStrictMode: true, webpack: (config, { isServer }) => { // Fix for vedic-astrology-api Node.js modules in browser if (!isServer) { config.resolve.fallback = { …config.resolve.fallback, fs: false, net: false, tls: false, dns: false, child_process: false, http2: false, stream: false, zlib: false, crypto: false, path: false, os: false, }; } return config; }, }; export default nextConfig; 4 – Update package.json Scripts { "scripts": { "dev": "next dev – webpack", "build":
-
Rashi Phal – nodebook Installation
nodebook Installation
-
Rashi Phal – Install Volta Node Manager
Install Voltas Node Manager https://github.com/volta-cli/volta/releases/v2.0.2 volta install node volta install npm
-
Rashi Phal – How To Setup Virtual Env In Node Project ?
How To Setup Virtual Environment In Node Project?
-
Rashi Phal – TSLab Setup For Type Script Code
TSLab Setup Set-ExecutionPolicy RemoteSigned -Scope CurrentUser irm https://deno.land/install.ps1 | iex deno – version mkdir -p %APPDATA%jupyterkernelsdeno mkdir -p ~/.local/share/jupyter/kernels/deno { "argv": ["deno", "run", "–unstable", "–allow-read", "–allow-net", "{connection_file}"], "display_name": "Deno TypeScript", "language": "typescript" }
-
Rashi Phal – Ascendant Calculation
Ascendant Calculation 1. Interfaces and Constants We start by defining the necessary constants and the expected structure for the input data. // – – 1. CONSTANTS AND INTERFACES – – interface Coordinates { latitude: number; longitude: number; } interface BirthData extends Coordinates { year: number; month: number; day: number; hour: number; // Local Time (24-hour) minute: number; timeZoneOffset: number; // e.g., 5.5 for IST } interface LagnaResult { siderealAscendant: number; jd: number; // Julian Day (for subsequent planet calculations) ayanamshaDeg: number; } // Lahiri Ayanamsha Constants (Simplified Linear Model for Demonstration) const AYANAMSHA_CONSTANTS = { // Approx Lahiri value on
-

Rashi Phal – Place Of Birth Dropdown Suggestion
Place Of Birth Dropdown Selection /** * Get location suggestions as user types */ export async function getLocationSuggestions(query: string): Promise<Array<{ displayName: string; lat: number; lon: number; }>> { if (!query || query.length < 3) { return []; } try { const nominatimUrl = `https://nominatim.openstreetmap.org/search?q=${encodeURIComponent( query )}&format=json&limit=5&addressdetails=1`; const response = await fetch(nominatimUrl, { headers: { 'User-Agent': 'AstrologyApp/1.0', }, }); if (!response.ok) { throw new Error('Failed to fetch suggestions'); } const data = await response.json(); return data.map((item: any) => ({ displayName: item.display_name, lat: parseFloat(item.lat), lon: parseFloat(item.lon), })); } catch (error) { console.error('Location suggestion error:', error); return []; } } import { getCoordinates,
-

Rashi Phal – Kundali Design
Kundali Design npm install astronomy-engine date-fns dayjs
