Birth Chart Generation Logic
1 – Create ‘app\api\generate-kundali\route.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 ‘app\kundali\page.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 ‘lib\mahadasha\vimshottari.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
This will contain the planetory images, which will get displaed in the chart.
