Skip to content

Janapriya29/SheCodes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

27 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸŽ“ TeacherLoggg

Track Invisible Academic Work with Stranger Things Style

A retro 80s themed web application for teachers to log and document their academic contributions beyond lectures - mentoring, project guidance, research, workshops, and more. Perfect for appraisals and accreditation (NAAC/NBA).

Stranger Things Theme Tech Stack Status

✨ Features

  • 🎀 Voice Assistant - Speak naturally to log contributions (hands-free entry)
  • πŸ“ Text Entry - Traditional form-based logging
  • πŸ“Š Dashboard - Visual overview of your contributions with statistics
  • πŸ€– AI Summarization - GPT-4 powered summaries for appraisals (NAAC/NBA ready)
  • πŸ“± Responsive Design - Works on all devices (mobile, tablet, desktop)
  • 🎨 Retro 80s Theme - Stranger Things-inspired neon aesthetics
  • ✏️ Edit & Delete - Full CRUD operations for contribution management
  • ⏱️ Time Tracking - Automatic time categorization and reporting

🎭 Demo

Live Preview: https://professor-log.preview.emergentagent.com

Screenshots

Landing Page: Retro 80s introduction with benefits Dashboard: Real-time statistics and category breakdown
New Entry: Voice or text input for quick logging History: Edit, delete, and generate AI summaries

πŸš€ Quick Start

Prerequisites

  • Node.js 18+ and Yarn
  • Python 3.11+
  • MongoDB
  • OpenAI API Key (for AI summarization)

Installation

  1. Clone the repository
git clone https://github.com/YOUR_USERNAME/teacherloggg.git
cd teacherloggg
  1. Setup Backend
cd backend
pip install -r requirements.txt

# Create .env file
cat > .env << EOF
MONGO_URL=mongodb://localhost:27017
DB_NAME=teacherlog_db
CORS_ORIGINS=*
OPENAI_API_KEY=your_openai_api_key_here
EOF

# Start backend
python -m uvicorn main:app --host 0.0.0.0 --port 8001 --reload
  1. Setup Frontend
cd frontend
yarn install

# Create .env file
cat > .env << EOF
REACT_APP_BACKEND_URL=http://localhost:8001
WDS_SOCKET_PORT=3000
ENABLE_HEALTH_CHECK=false
EOF

# Start frontend
yarn start
  1. Access Application

🐳 Docker Deployment

Using Docker Compose (Recommended)

cd infra
docker-compose up --build

All services (Frontend, Backend, MongoDB) will start automatically!

Manual Docker Build

# Backend
cd backend
docker build -t teacherlog-backend .
docker run -p 8001:8001 --env-file .env teacherlog-backend

# Frontend
cd frontend
docker build -t teacherlog-frontend .
docker run -p 3000:3000 --env-file .env teacherlog-frontend

πŸ—οΈ Tech Stack

Frontend

  • React.js - UI framework
  • Tailwind CSS - Utility-first styling
  • Shadcn/UI - Component library
  • Web Speech API - Voice recognition
  • Axios - HTTP client
  • Sonner - Toast notifications

Backend

  • Python 3.11 - Programming language
  • FastAPI - Web framework
  • MongoDB - Database
  • Motor - Async MongoDB driver
  • OpenAI API - AI summarization
  • Pydantic - Data validation

DevOps

  • Docker - Containerization
  • Docker Compose - Multi-container orchestration
  • Supervisor - Process management

πŸ“‚ Project Structure

teacherloggg/
β”œβ”€β”€ frontend/
β”‚   β”œβ”€β”€ src/
β”‚   β”‚   β”œβ”€β”€ components/         # Reusable UI components
β”‚   β”‚   β”‚   β”œβ”€β”€ ui/            # Shadcn components
β”‚   β”‚   β”‚   β”œβ”€β”€ Navigation.jsx
β”‚   β”‚   β”‚   β”œβ”€β”€ VoiceAssistant.jsx
β”‚   β”‚   β”‚   └── ...
β”‚   β”‚   β”œβ”€β”€ pages/             # Main application pages
β”‚   β”‚   β”‚   β”œβ”€β”€ LandingPage.jsx
β”‚   β”‚   β”‚   β”œβ”€β”€ Dashboard.jsx
β”‚   β”‚   β”‚   β”œβ”€β”€ NewEntry.jsx
β”‚   β”‚   β”‚   └── History.jsx
β”‚   β”‚   β”œβ”€β”€ App.js             # Main application
β”‚   β”‚   └── index.css          # Global styles + design system
β”‚   β”œβ”€β”€ Dockerfile
β”‚   β”œβ”€β”€ package.json
β”‚   └── tailwind.config.js
β”‚
β”œβ”€β”€ backend/
β”‚   β”œβ”€β”€ main.py                # FastAPI application
β”‚   β”œβ”€β”€ Dockerfile
β”‚   β”œβ”€β”€ requirements.txt
β”‚   └── .env
β”‚
β”œβ”€β”€ infra/
β”‚   └── docker-compose.yml     # Multi-container setup
β”‚
β”œβ”€β”€ README.md
└── DEPLOYMENT_GUIDE.md

🎀 Voice Assistant Usage

  1. Navigate to New Entry page
  2. Click the floating microphone button (bottom-right)
  3. Grant microphone permissions when prompted
  4. Speak naturally:
    • "Student mentoring" β†’ Auto-fills contribution type
    • "Say skip" β†’ Skip optional reference field
    • "Thirty minutes" β†’ Auto-fills time spent
    • Describe your work β†’ Auto-fills description
  5. Click "Save Contribution" when done

Note: Voice assistant works best in Chrome/Edge browsers

πŸ€– AI Summary Feature

  1. Log multiple contributions
  2. Go to History page
  3. Click "AI Summary" button
  4. Get a professional summary formatted for:
    • Teacher appraisals
    • NAAC/NBA accreditation
    • Performance reviews
    • Annual reports

🎨 Design System

The application uses a Stranger Things-inspired design system:

Colors (HSL Format)

--primary: 353 88% 50%        /* Neon Red */
--secondary: 186 100% 50%     /* Electric Blue */
--accent: 332 100% 56%        /* Magenta */
--background: 2 8% 3%         /* Nearly Black */

Typography

  • Titles: Lora (serif) - uppercase with letter-spacing
  • Body: Inter (sans-serif) - clean and readable

Visual Effects

  • Scanline animations
  • VHS noise overlay
  • Neon glow effects
  • Glitch animations
  • Pulse animations

πŸ“ API Endpoints

Contributions

  • GET /api/ - Health check
  • GET /api/contributions - List all contributions (max 1000)
  • POST /api/contributions - Create new contribution
  • GET /api/contributions/{id} - Get single contribution
  • PUT /api/contributions/{id} - Update contribution
  • DELETE /api/contributions/{id} - Delete contribution

AI Features

  • POST /api/summarize - Generate AI summary of contributions

πŸ”§ Configuration

Environment Variables

Backend (.env)

MONGO_URL=mongodb://localhost:27017
DB_NAME=teacherlog_db
CORS_ORIGINS=*
OPENAI_API_KEY=sk-...

Frontend (.env)

REACT_APP_BACKEND_URL=http://localhost:8001
WDS_SOCKET_PORT=3000
ENABLE_HEALTH_CHECK=false

🌐 Browser Support

  • βœ… Chrome/Edge (recommended for voice features)
  • βœ… Firefox
  • βœ… Safari (limited voice support)
  • βœ… Mobile browsers

πŸ› Troubleshooting

Voice Assistant Not Working

  • Use Chrome or Edge browser
  • Grant microphone permissions
  • Must be on HTTPS in production
  • Navigate to "New Entry" page first

API Connection Failed

  • Verify backend is running on port 8001
  • Check REACT_APP_BACKEND_URL in frontend/.env
  • Ensure CORS is configured properly

MongoDB Connection Error

  • Ensure MongoDB is running
  • Check MONGO_URL in backend/.env
  • For cloud: Use MongoDB Atlas connection string

πŸš€ Deployment

Deploy on Emergent Platform

  1. Push code to GitHub
  2. Connect GitHub to Emergent
  3. Emergent auto-detects stack
  4. Add environment variables
  5. Deploy! πŸŽ‰

See DEPLOYMENT_GUIDE.md for detailed instructions.

Deploy on Other Platforms

  • Vercel (Frontend) + Render (Backend)
  • Netlify (Frontend) + Railway (Backend)
  • AWS / Google Cloud / Azure
  • DigitalOcean / Heroku

πŸ“„ License

MIT License - Free to use for educational institutions!

πŸ™ Acknowledgments

  • Inspired by Netflix's Stranger Things
  • Built for educators worldwide
  • Powered by OpenAI GPT-4

πŸ‘₯ Contributing

Contributions welcome! Please:

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/AmazingFeature)
  3. Commit changes (git commit -m 'Add AmazingFeature')
  4. Push to branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

πŸ“ž Support

🎯 Roadmap

  • Export to PDF/Excel
  • Multi-user support with authentication
  • Calendar view for contributions
  • Mobile app (React Native)
  • Integration with university systems
  • Analytics and insights dashboard
  • Team collaboration features

Made with ❀️ for Teachers

Track your impact. Get recognized. Streamline accreditation.

⭐ Star this repo if you find it helpful!

About

No description, website, or topics provided.

Resources

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors