ankitkumar810/SHAASTRA ? reverse-engineered prompt
Reverse engineered prompt
Build me the shelter and map part of a web app for SHAASTRA.
I want a homepage, a shelter list page, and a shelter detail page that let people browse shelters, see basic availability info, and open a map view to find nearby options. Add a simple filter bar so users can narrow shelters by things like beds available, district, distance, and whether food or medicine is available. If location permission is denied, just fall back to a sensible default city center so the app still works.
Also include the backend API for creating, listing, viewing, and updating shelters, plus a seed script so I can load sample shelter data quickly. Make sure protected actions are guarded with role based access, and that shelter admins can post updates for their own shelter only.
Keep the design clean and mobile friendly, and wire everything together so I can run the frontend and backend locally and test the full flow end to end. If you need current library docs, look them up online first.