Polyverse is a modern, elegant translation web application built with Next.js, MongoDB, and Tailwind CSS. It offers a seamless translation experience with support for 12+ languages, user authentication, and translation history tracking. The sleek, professional dark theme provides a premium user experience across all devices.
- Multi-language Support: Translate between 12+ popular languages
- Real-time Translation: Fast, responsive translation interface
- Fallback API System: Multiple translation services for reliability
- Language Swapping: Easily switch source and target languages
- Secure Authentication: User registration and login with NextAuth.js
- Profile Management: View and manage your account details
- Translation History: Access all your previous translations
- Data Privacy: Secure handling of user information
- Professional Dark Theme: Sleek navy blue and black gradient design
- Responsive Design: Perfect experience on desktop, tablet, and mobile
- Animated Components: Subtle animations for a premium feel
- Accessibility: Built with accessibility in mind
- MongoDB Integration: Reliable storage for user data and translations
- Translation History: Save and retrieve past translations
- User Preferences: Store user settings and preferences
Category | Technologies |
---|---|
Frontend | |
Styling | |
Database | |
Authentication | |
Translation APIs | |
Deployment |
polyverse/
βββ app/ # Next.js app directory
β βββ api/ # API routes
β β βββ auth/ # Authentication endpoints
β β βββ translate/ # Translation API
β β βββ translations/ # User translations management
β βββ login/ # Login page
β βββ signup/ # Signup page
β βββ profile/ # User profile page
β βββ layout.tsx # Root layout
β βββ page.tsx # Homepage
βββ components/ # Reusable components
β βββ ui/ # Shadcn/ui components
β βββ navigation.tsx # Navigation bar
β βββ auth-provider.tsx # Authentication provider
β βββ theme-toggle.tsx # Dark mode toggle
βββ lib/ # Utility functions
β βββ mongodb.ts # MongoDB connection
β βββ auth.ts # NextAuth configuration
βββ types/ # TypeScript type definitions
βββ public/ # Static assets
β βββ favicon.ico # Site favicon
βββ .env.local # Environment variables (create from .env.example)
βββ .env.example # Example environment variables
βββ next.config.js # Next.js configuration
βββ tailwind.config.js # Tailwind CSS configuration
βββ tsconfig.json # TypeScript configuration
βββ package.json # Project dependencies
- Clone the repository
git clone https://github.com/yourusername/polyverse.git
cd polyverse
- Install dependencies
npm install
- Set up environment variables
Create a .env.local
file from .env.example
and fill in:
MONGODB_URI=your_mongodb_uri
NEXTAUTH_SECRET=your_secret
NEXTAUTH_URL=http://localhost:3000
- Run the development server
npm run dev
- Open your browser
Navigate to http://localhost:3000
Run tests using:
npm run test
This will execute all unit and integration tests to ensure the application is functioning correctly.
This project is licensed under the MIT License.