code-daily-exercises
v1.0.6
Published
A CLI tool to generate daily coding exercises using Gemini AI
Downloads
589
Maintainers
Readme
Code Daily
🚀 A CLI tool that generates daily coding exercises using Google's Gemini AI. Get personalized coding exercises for different programming languages and domains.
Features
- Generate 5 coding exercises for different programming languages
- Choose from various domains/sections for each language
- Get detailed problem descriptions and requirements
- Option to generate solutions with explanations
- Automatic file and folder creation for exercises
- Beautiful CLI interface with syntax highlighting
Supported Languages and Sections
JavaScript
- Frontend
- Backend
- Fullstack
- Data Structures
- Algorithms
Python
- Backend
- Data Science
- Algorithms
- Machine Learning
- Web Development
TypeScript
- Frontend
- Backend
- Fullstack
- React
- Node.js
Rust
- CLI
- Web Server
- Systems Programming
- Data Structures
- Algorithms
Go
- Backend
- CLI
- Web Services
- Data Structures
- Algorithms
Installation
npm install -g code-daily-exercises
Configuration
- Get a Gemini API key from Google AI Studio
- Create a
.env
file in your working directory:
GEMINI_API_KEY=your_api_key_here
Usage
- Run the CLI:
code-daily
- Follow the interactive prompts to:
- Choose a programming language
- Select a specific domain/section
- Get generated exercises
- Optionally view solutions
Output
The tool will create:
- A new folder for each session with the format:
{language}-{section}-{date}
exercises.md
containing all generated exercises- Language-specific template files based on your selection
- Individual exercise folders with starter files
solution-{number}.md
files when solutions are requested
Requirements
- Node.js >= 14
- Google Gemini API key
Author
Onesmus Bett
- GitHub: @onesmuskipchumba0
- Email: [email protected]
License
MIT