A modern web application for exploring, analyzing, and learning Sanskrit literature with an interactive interface and comprehensive analysis tools.
- ๐ Browse sacred Sanskrit texts and chapters
- ๐ Detailed word-by-word analysis
- ๐ Interactive shloka reading
- ๐ฏ Role-based access control
- ๐ Dark mode support
- ๐ฑ Responsive design
- โก Server-side rendering with Next.js 14
- ๐ Secure authentication with Clerk
- ๐ MongoDB database integration
- ๐จ Modern UI with Tailwind CSS
- ๐ Optimized performance
- ๐ API routes for data management
- Next.js 14
- React with TypeScript
- Tailwind CSS
- ShadcnUI Components
- Clerk Authentication
- Next.js API Routes
- MongoDB with Mongoose
- TypeScript
- Vercel Deployment
- MongoDB Atlas
- Clerk Authentication Services
- Clone the repository
git clone https://github.com/yourusername/start.git
cd start- Install dependencies
npm install
# or
yarn install- Set up environment variables
Create a
.env.localfile with:
MONGO_URI=your_mongodb_connection_string
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=your_clerk_key
CLERK_SECRET_KEY=your_clerk_secret
# Optional: for notification cleanup cron. Add in Vercel env vars; Vercel sends it in the Authorization header when invoking the cron.
CRON_SECRET=your_16_char_minimum_secret- Run the development server
npm run dev
# or
yarn devstart/
โโโ app/
โ โโโ (dashboard)/
โ โ โโโ books/
โ โ โโโ admin/
โ โ โโโ addshloka/
โ โ โโโ page.tsx
โ โโโ api/
โโโ components/
โ โโโ global/
โ โ โโโ header.tsx
โ โ โโโ footer.tsx
โ โ โโโ navigation.tsx
โ โโโ ui/
โโโ lib/
โ โโโ db/
โ โโโ connect.ts
โ โโโ newShlokaModel.ts
โ โโโ newAnalysisModel.ts
โ โโโ permissionsModel.ts
โโโ public/
Stores Sanskrit verses with metadata:
- Chapter and verse numbers
- Sanskrit text parts
- Book and section information
Comprehensive linguistic analysis:
- Morphological analysis
- Syntactic relations
- Word meanings
- Grammatical details
User role management:
- User levels (User to Root)
- Access control
- User metadata
- User: Basic reading access
- Annotator: Can add annotations
- Editor: Content modification rights
- Admin: Administrative access
- Root: Full system access
- Role-based access control
- Secure API endpoints
- Protected routes
- Admin dashboard
- Header with navigation
- Footer with links
- Responsive navigation menu
- User authentication UI
- Shloka display cards
- Analysis viewer
- Admin dashboard
- Upload interface
/api/books/[book]/[part1]/[part2]/[chaptno]/api/ahShloka/[id]/api/uploadJson
/api/getCurrentUser/api/getAllUsers/api/updateUser
# Install dependencies
npm install
# Run development server
npm run dev
# Build application
npm run build# Build for production
npm run build
# Start production server
npm start- Fork the repository
- Create your feature branch
- Commit your changes
- Push to the branch
- Create a Pull Request
This project is licensed under the MIT License - see the LICENSE.md file for details.
- Developer: [Yajush Vyas]
- Contact: [vyasyajush@gmail.com]
- Website: [yajushvyas.in]
- Sanskrit scholars and contributors
- Open source community
- Framework and library maintainers
For detailed documentation:
- Enhanced analysis features
- Mobile application
- Additional Sanskrit texts
- Community features
- Advanced search capabilities