A modern web application for language learning that provides interactive translation exercises with AI-powered feedback.
- Translation exercises between any pair of languages
- Support for multiple acceptable translations
- Real-time AI evaluation of translations
- Feedback on overall translation quality and specific grammatical concepts
- Modern, responsive UI with Tailwind CSS
- Node.js 18+ and npm
- OpenAI API key
- Clone the repository:
git clone <repository-url>
cd language-learning-app
- Install dependencies:
npm install
- Set up your environment variables:
- Copy
.env.example
to.env
- Add your OpenAI API key to the
.env
file
- Initialize the database:
npx prisma generate
npx prisma db push
- Start the development server:
npm run dev
The application will be available at http://localhost:3000
.
/src/app
- Next.js application files/src/components
- React components/src/lib
- Utility functions and services/prisma
- Database schema and migrations
To add new sentences and translations:
- Use the Prisma Studio to manage database content:
npx prisma studio
- Add languages, grammatical concepts, and sentences through the UI
DATABASE_URL
: SQLite database URLOPENAI_API_KEY
: Your OpenAI API key
- Fork the repository
- Create a feature branch
- Commit your changes
- Push to the branch
- Create a Pull Request
MIT