krishna-bhagavan-dev/google-reviews-sync — reverse-engineered prompt
Reverse engineered prompt
Build me a small backend service that can sync Google Business Profile reviews for one restaurant into a local SQLite database. I want to be able to run it locally, connect it to Google with OAuth credentials, choose the right business account and location, then save that restaurant as the one to sync.
It should have API endpoints to list Google accounts, list locations for an account, create or load the configured restaurant, manually trigger a review sync, view sync logs, and fetch saved reviews for a restaurant. The sync should save the Google review id, rating, text, author, review date, and last updated date, and it should not create duplicates if I run it more than once.
Please include a fixture mode so I can test the whole flow without real Google credentials, using demo restaurant data. Also add scheduled syncing with a configurable cron value, clear logging for created, updated, unchanged, and failed records, and basic tests. Look up current Google Business Profile API docs online if you need to.
Want more depth? Deep Reverse