Sangam
Your Community, Your Space
The problem Sangam solves
Problem Statement
Mainstream social media platforms often fail to address the unique needs and cultural nuances of South Indian communities. Individuals and families find it difficult to discover locally relevant services, job opportunities, and community events. Existing solutions remain too generic, lacking the contextual understanding needed for South India’s social fabric.
Sangam is intended to bridge this gap, providing a culturally attuned, community-centric platform.
Target Users
Primary Users
- South Indian families and individuals
- Local business owners and service providers
- Cultural organization members
- Young professionals seeking local community connections
Secondary Users
- Event organizers and temple committees
- Home-based food vendors
- Local artisans and craft makers
- Students and job seekers in the community
Challenges we ran into
Development Hurdle Faced
Challenge: Persistent State Reset on Page Refresh with React Router and Vite
While developing the Community Feed and Event Management pages, we noticed an issue where navigating between routes worked perfectly, but on directly refreshing a page like
/events
, the app threw a 404 Not Found error. This happened because the browser was trying to directly access the route via the server, but since we’re using Vite with client-side routing (React Router) and no backend server to handle these routes, it caused a problem.Resolution
After some debugging, we discovered this is a common issue with client-side routing setups. The fix involved:
- Adding a fallback HTML file rule in the
vite.config.ts
to redirect all unknown routes toindex.html
. - Configuring the hosting (in future deployment) to always serve
index.html
for any unknown path, so React Router can handle it.
Updated vite.config.ts:
export default defineConfig({ plugins: [react()], build: { rollupOptions: { input: '/index.html', }, }, server: { historyApiFallback: true, // Added this line }, });
Technologies used