← Về thư mục
description: "Sync user data from a local .md file into Supabase"
/sync-user-data Workflow
/sync-user-data Workflow
Follow these steps whenever you have a new JHora profile to sync.
Step 1: Prepare the File
- Open the Vedic-astro-mar app in your browser.
- Paste your raw JHora ASCII into Step 0.
- Click "COPY ALL TECHNICAL DATA" in the footer.
- Created a new
.md file in the docs/ folder (e.g., docs/Vedic - [Name] data.md).
- Paste the data you copied into that file and save.
(Shortcut: You can also manually create the file, provided it uses the same Markdown table format.)
Step 2: Sync the Profile
Run the following command in your terminal, replacing the filename with your new file:
// turbo
npm run sync-user -- "docs/Vedic - [Filename].md"
Step 3: Refresh and Select
- Reload your browser (http://localhost:3000).
- The new profile will now appear in the "Switch Profile" dropdown in Step 0.
- Selecting it will instantly populate all charts and dashas.
🔄 Updating Existing Profiles?
If you add more notes or data to an existing .md file, just run the command in Step 2 again. The sync-user script uses the User Name as a unique ID and will update your existing database record automatically.