|
1 | | -This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app). |
| 1 | +# LangSuit 🌍 |
| 2 | + |
| 3 | +An easy way to become a Polyglot - A modern language learning platform built with Next.js. |
| 4 | + |
| 5 | +## Features |
| 6 | + |
| 7 | +- 🎯 Interactive language learning exercises |
| 8 | +- 📊 Real-time progress tracking |
| 9 | +- 🏆 Leaderboard and achievements system |
| 10 | +- 🎓 Multiple language courses |
| 11 | +- 💻 Instructor dashboard |
| 12 | +- 📱 Mobile-responsive design |
| 13 | +- 🔄 Real-time analytics |
| 14 | + |
| 15 | +## Tech Stack |
| 16 | + |
| 17 | +- Next.js 14 with App Router |
| 18 | +- TypeScript |
| 19 | +- Drizzle ORM with PostgreSQL |
| 20 | +- Redis Caching |
| 21 | +- TailwindCSS |
| 22 | +- Clerk Authentication |
| 23 | +- React Admin Dashboard |
| 24 | +- Recharts for Analytics |
| 25 | +- Jest for Testing |
| 26 | + |
| 27 | +## Prerequisites |
| 28 | + |
| 29 | +- Node.js 18+ |
| 30 | +- PostgreSQL |
| 31 | +- Redis (optional, for caching) |
2 | 32 |
|
3 | 33 | ## Getting Started |
4 | 34 |
|
5 | | -First, run the development server: |
| 35 | +1. Clone the repository: |
| 36 | + |
| 37 | +```bash |
| 38 | +git clone https://github.com/codegasms/langsuit.git |
| 39 | +cd langsuit |
| 40 | +``` |
| 41 | + |
| 42 | +2. Install dependencies: |
| 43 | + |
| 44 | +```bash |
| 45 | +npm install |
| 46 | +``` |
| 47 | + |
| 48 | +3. Set up environment variables: |
| 49 | + |
| 50 | +```bash |
| 51 | +cp .env.example .env |
| 52 | +``` |
| 53 | + |
| 54 | +4. Update the .env file with your credentials: |
| 55 | + |
| 56 | +```env |
| 57 | +DATABASE_URL=your_postgres_url |
| 58 | +REDIS_URL=your_redis_url |
| 59 | +CLERK_SECRET_KEY=your_clerk_key |
| 60 | +. |
| 61 | +. |
| 62 | +. |
| 63 | +``` |
| 64 | + |
| 65 | +5. Run database migrations: |
| 66 | + |
| 67 | +```bash |
| 68 | +npm run db:push |
| 69 | +``` |
| 70 | + |
| 71 | +6. Seed the database: |
| 72 | + |
| 73 | +```bash |
| 74 | +npm run db:seed |
| 75 | +``` |
| 76 | + |
| 77 | +7. Start the development server: |
6 | 78 |
|
7 | 79 | ```bash |
8 | 80 | npm run dev |
9 | | -# or |
10 | | -yarn dev |
11 | | -# or |
12 | | -pnpm dev |
13 | | -# or |
14 | | -bun dev |
15 | 81 | ``` |
16 | 82 |
|
17 | | -Open [http://localhost:3000](http://localhost:3000) with your browser to see the result. |
| 83 | +Open [http://localhost:3000](http://localhost:3000) to see the application. |
| 84 | + |
| 85 | +## Available Scripts |
18 | 86 |
|
19 | | -You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file. |
| 87 | +- `npm run dev` - Start development server |
| 88 | +- `npm run build` - Build for production |
| 89 | +- `npm run start` - Start production server |
| 90 | +- `npm run lint` - Run ESLint |
| 91 | +- `npm run format` - Format code with Prettier |
| 92 | +- `npm run test` - Run tests |
| 93 | +- `npm run test:coverage` - Run tests with coverage |
| 94 | +- `npm run db:studio` - Open Drizzle Studio |
| 95 | +- `npm run db:push` - Push database changes |
| 96 | +- `npm run db:seed` - Seed the database |
20 | 97 |
|
21 | | -This project uses [`next/font`](https://nextjs.org/docs/basic-features/font-optimization) to automatically optimize and load Inter, a custom Google Font. |
| 98 | +## Testing |
22 | 99 |
|
23 | | -## Learn More |
| 100 | +The project uses Jest for testing. Run the test suite with: |
| 101 | + |
| 102 | +```bash |
| 103 | +npm run test |
| 104 | +``` |
| 105 | + |
| 106 | +For coverage report: |
| 107 | + |
| 108 | +```bash |
| 109 | +npm run test:coverage |
| 110 | +``` |
| 111 | + |
| 112 | +Check [package.json](package.json) for more scripts. |
| 113 | + |
| 114 | +## Project Structure |
| 115 | + |
| 116 | +``` |
| 117 | +langsuit/ |
| 118 | +├── app/ # Next.js app directory |
| 119 | +│ ├── (dashboard)/ # Dashboard routes |
| 120 | +│ ├── (home)/ # Public routes |
| 121 | +│ └── api/ # API routes |
| 122 | +├── components/ # Reusable components |
| 123 | +├── db/ # Database configuration |
| 124 | +├── lib/ # Utility functions |
| 125 | +├── public/ # Static assets |
| 126 | +└── tests/ # Test files |
| 127 | +``` |
24 | 128 |
|
25 | | -To learn more about Next.js, take a look at the following resources: |
| 129 | +## Contributing |
26 | 130 |
|
27 | | -- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API. |
28 | | -- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial. |
| 131 | +1. Fork the repository |
| 132 | +2. Create a new branch |
| 133 | +3. Make your changes |
| 134 | +4. Submit a pull request |
29 | 135 |
|
30 | | -You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome! |
| 136 | +## License |
31 | 137 |
|
32 | | -## Deploy on Vercel |
| 138 | +This project is licensed under the MIT License. |
33 | 139 |
|
34 | | -The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js. |
| 140 | +## Support |
35 | 141 |
|
36 | | -Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details. |
| 142 | +For support, email bishwajeet.s22@iiits.in, parth.v22@iiits.in or akshat.m22@iiits.in. Otherwise open an issue in the repository. |
0 commit comments