A comprehensive, full-stack application for creating, managing, and sharing AI prompts with advanced features and a beautiful user interface.
- Advanced Prompt Builder - Create sophisticated prompts with multiple parameters
- AI-Powered Generation - Leverage Google Gemini API for intelligent prompt optimization
- Live Preview - See your prompts in real-time as you build them
- Template Management - Save, load, and organize prompt templates
- Community Hub - Share and discover prompts from the community
- Smart Input Fields - Autocomplete suggestions for all input fields
- Keyboard Shortcuts - Power user shortcuts for faster workflow
- Error Boundary - Graceful error handling and recovery
- Mobile Responsive - Perfect experience on all devices
- Real-time Updates - Community prompts update instantly when you save
- Modern UI - Built with shadcn/ui and Tailwind CSS
- Glassmorphism Design - Beautiful, modern interface
- Dark/Light Mode - Adaptive theming
- Accessibility - WCAG compliant design
- Performance - Optimized for speed and efficiency
- Framework: React 18 with TypeScript
- Styling: Tailwind CSS + shadcn/ui components
- State Management: React Context + useState
- Routing: React Router DOM
- Build Tool: Vite
- API Client: Custom service layer
- Runtime: Node.js with Express.js
- Language: TypeScript
- Database: MongoDB with Mongoose
- Authentication: JWT-based auth
- AI Integration: Google Gemini API
- Security: Helmet, CORS, Rate limiting
- Node.js 18+
- MongoDB (local or Atlas)
- Google Gemini API key
- Clone the repository
git clone https://github.com/Sumit4482/emini-prompt-guide.git
cd emini-prompt-guide- Install dependencies
# Install frontend dependencies
npm install
# Install backend dependencies
cd backend
npm install
cd ..- Environment Setup
# Copy environment template
cp backend/env.example backend/.env
# Edit backend/.env with your configuration
# Required: MONGODB_URI, JWT_SECRET, GEMINI_API_KEY- Start the application
# Start backend (Terminal 1)
cd backend
npm run dev
# Start frontend (Terminal 2)
npm run dev- Access the application
- Frontend: http://localhost:8080
- Backend API: http://localhost:3001
emini-prompt-guide/
โโโ src/ # Frontend source
โ โโโ components/
โ โ โโโ EchoPrompt/ # Core components
โ โ โ โโโ PromptBuilder.tsx # Main prompt builder
โ โ โ โโโ CommunityHub.tsx # Community features
โ โ โ โโโ BeginnerTemplates.tsx # Template library
โ โ โ โโโ ... # Other components
โ โ โโโ ui/ # shadcn/ui components
โ โโโ pages/ # Page components
โ โโโ contexts/ # React contexts
โ โโโ services/ # API services
โ โโโ hooks/ # Custom hooks
โโโ backend/ # Backend source
โ โโโ src/
โ โ โโโ models/ # Database models
โ โ โโโ routes/ # API routes
โ โ โโโ middleware/ # Express middleware
โ โ โโโ services/ # Business logic
โ โโโ dist/ # Compiled TypeScript
โโโ public/ # Static assets
โโโ docs/ # Documentation
Create backend/.env with the following:
# Database
MONGODB_URI=mongodb://localhost:27017/emini-prompt-guide
# Authentication
JWT_SECRET=your-super-secret-jwt-key
# AI Services
GEMINI_API_KEY=your-gemini-api-key
# Server
PORT=3001
NODE_ENV=development| Method | Endpoint | Description |
|---|---|---|
| POST | /api/auth/register |
User registration |
| POST | /api/auth/login |
User login |
| GET | /api/prompts |
Get user prompts |
| POST | /api/prompts |
Save new prompt |
| GET | /api/templates |
Get templates |
| POST | /api/templates |
Save template |
| POST | /api/generate |
Generate AI prompt |
- Navigate to the Builder tab
- Fill in the prompt parameters:
- Role: Who should the AI act as?
- Task: What should it do?
- Context: Additional background information
- Tone: Desired communication style
- Output Format: How should it respond?
- Use AI Generate for intelligent optimization
- Save your prompt for future use
- Go to Templates tab
- Browse beginner-friendly templates
- Click Use to load into builder
- Customize as needed
- Visit Community tab
- Browse shared prompts
- Use prompts from others
- Your saved prompts automatically appear here
Ctrl/Cmd + Enter: Generate promptCtrl/Cmd + S: Save promptCtrl/Cmd + T: Save as templateCtrl/Cmd + L: Load templateCtrl/Cmd + A: Toggle advanced settingsCtrl/Cmd + F: Focus task field
- Connect your GitHub repository to Netlify
- Set build command:
npm run build - Set publish directory:
dist - Deploy automatically on push
- Connect your GitHub repository to Render
- Set build command:
cd backend && npm install && npm run build - Set start command:
cd backend && npm start - Add environment variables in Render dashboard
- Create a MongoDB Atlas account
- Create a new cluster
- Get connection string
- Update
MONGODB_URIin environment variables
# Run frontend tests
npm test
# Run backend tests
cd backend
npm test
# Run all tests
npm run test:all- Fork the repository
- Create a feature branch:
git checkout -b feature/amazing-feature - Commit changes:
git commit -m 'Add amazing feature' - Push to branch:
git push origin feature/amazing-feature - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
- shadcn/ui for beautiful components
- Tailwind CSS for styling
- Google Gemini for AI capabilities
- React for the frontend framework
- Express.js for the backend
If you have any questions or need help:
- Check the Issues page
- Create a new issue with detailed description
- Join our community discussions
Made with โค๏ธ by the Sumit4482 and Cursor AI
Empowering everyone to create better AI prompts