How anushkalaheri/hack_heritage-3.0_-her-voice- works
This is a women’s safety and empowerment web app. Users authenticate, then navigate a protected hub for community posts, AI legal guidance, emergency help, equality resources, government schemes, and skill exchange. The frontend routes pages and uses Redux slices or API clients to manage requests; Flask provides the API, with equality models and routes separated from the main application file. The README documents additional product capabilities and endpoints, but most backend implementation details were not sampled, so those links are documentation-based rather than code-verified.
Main entry points: App.tsx Route shell · axios.ts HTTP client · app.py Flask API · Home.tsx Home dashboard
Components 24
App entry and identity
- Route shell
frontend/src/App.tsx - Login and register
frontend/src/pages/Auth/Login.tsx - Authentication state
frontend/src/store/slices/authSlice.ts - HTTP client
frontend/src/api/axios.ts
Community and skills
- Community posts
frontend/src/pages/Posts/Posts.tsx - Posts state
frontend/src/store/slices/postsSlice.ts - Skill exchange
frontend/src/pages/SkillSwap/SkillSwap.tsx - Skill exchange API
frontend/src/api/skillSwapApi.ts - Home dashboard
frontend/src/pages/Home/Home.tsx
Safety and guidance
- AI legal assistant
frontend/src/pages/Chatbot/Chatbot.tsx - Chat assistant dialog
frontend/src/components/Chatbot/ChatbotDialog.tsx - Emergency help
frontend/src/pages/Emergency/Emergency.tsx - SOS alert control
frontend/src/components/SOS/SOSButton.tsx - Emergency state
frontend/src/store/slices/emergencySlice.ts - Emergency API
frontend/src/api/emergencyApi.ts - Government schemes
frontend/src/pages/Schemes/Schemes.tsx
Equality and backend
- Equality hub
frontend/src/pages/Equality/CompleteEquality.tsx - Equality state
frontend/src/store/slices/equalitySlice.ts - Equality routes
backend/routes/equality_routes.py - Equality records
backend/models/equality_models.py - Flask API
backend/app.py
Other components
- User
- Application database
- External services
Connections 32
- User → Route shell: opens app
frontend/src/App.tsx - Route shell → Login and register: routes to
frontend/src/App.tsx - Route shell → Home dashboard: routes to
frontend/src/App.tsx - Route shell → Community posts: routes to
frontend/src/App.tsx - Route shell → AI legal assistant: routes to
frontend/src/App.tsx - Route shell → Emergency help: routes to
frontend/src/App.tsx - Route shell → Equality hub: routes to
frontend/src/App.tsx - Route shell → Government schemes: routes to
frontend/src/App.tsx - Route shell → Skill exchange: routes to
frontend/src/App.tsx - Login and register → Authentication state: dispatches
frontend/src/pages/Auth/Login.tsx - Authentication state → HTTP client: sends requests
frontend/src/store/slices/authSlice.ts - Community posts → Posts state: dispatches
frontend/src/pages/Posts/Posts.tsx - Posts state → HTTP client: sends requests
frontend/src/store/slices/postsSlice.ts - Home dashboard → Posts state: loads posts
frontend/src/pages/Home/Home.tsx - Home dashboard → Emergency state: loads nearby help
frontend/src/pages/Home/Home.tsx - Home dashboard → Equality state: loads dashboard
frontend/src/pages/Home/Home.tsx - Skill exchange → Skill exchange API: uses
frontend/src/pages/SkillSwap/SkillSwap.tsx - Skill exchange API → HTTP client: sends requests
frontend/src/api/skillSwapApi.ts - AI legal assistant → HTTP client: sends queries
frontend/src/pages/Chatbot/Chatbot.tsx - Chat assistant dialog → HTTP client: dispatches chat state
frontend/src/components/Chatbot/ChatbotDialog.tsx - Emergency help → Emergency state: dispatches
frontend/src/pages/Emergency/Emergency.tsx - Emergency help → Emergency API: gets contacts
frontend/src/pages/Emergency/Emergency.tsx - SOS alert control → Emergency API: starts and updates SOS
frontend/src/components/SOS/SOSButton.tsx - Emergency state → HTTP client: sends requests
frontend/src/store/slices/emergencySlice.ts - Equality hub → Equality state: dispatches
frontend/src/pages/Equality/CompleteEquality.tsx - Equality state → HTTP client: sends requests
frontend/src/store/slices/equalitySlice.ts - HTTP client → Flask API: calls API
README.md - Skill exchange API → Flask API: calls skill endpoints
frontend/src/api/skillSwapApi.ts - Flask API → Equality routes: delegates equality
backend/routes/equality_routes.py - Equality routes → Equality records: uses records
backend/routes/equality_routes.py - Flask API → Application database: persists app data
README.md - Flask API → External services: integrates AI and location
README.md