HUB
Sign inSign up

muralikrishna570/studentfeedback-app

By muralikrishna570

•Updated 12 months ago

🎓 Student Feedback & Registration System

Image
Databases & storage
Monitoring & observability
Web analytics
0

364

muralikrishna570/studentfeedback-app repository overview

⁠🎓 Student Feedback & Registration System

A full-stack student information system built with Streamlit, FastAPI/SQLAlchemy (Backend logic), Celery (Async Processing), Redis, and PostgreSQL.

This repository contains two main images:

  1. muralikrishna570/studentfeedback-app: The Streamlit frontend and main application logic.
  2. muralikrishna570/studentfeedback-worker: The Celery worker for processing unrelated background tasks (emails, database persistence, analytics).

⁠🚀 Quick Start

You can run the entire system using a single docker-compose.yml file.

⁠1. Create docker-compose.yml

Copy the following content into a file named docker-compose.yml:

services:
  postgres:
    image: postgres:15
    container_name: student_postgres
    environment:
      POSTGRES_USER: ${POSTGRES_USER:-admin}
      POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-password}
      POSTGRES_DB: ${POSTGRES_DB:-student_db}
    volumes:
      - ./data/postgres:/var/lib/postgresql/data
    ports:
      - "5432:5432"
    healthcheck:
      test: [ "CMD-SHELL", "pg_isready -U admin -d student_db" ]
      interval: 5s
      timeout: 5s
      retries: 5

  redis:
    image: redis:7
    container_name: student_redis
    volumes:
      - ./data/redis:/data
    ports:
      - "6379:6379"

  app:
    image: muralikrishna570/studentfeedback-app:latest
    container_name: student_app
    command: app
    ports:
      - "8501:8501"
    env_file:
      - .env
    depends_on:
      postgres:
        condition: service_healthy
      redis:
        condition: service_started

  worker:
    image: muralikrishna570/studentfeedback-worker:latest
    container_name: student_worker
    command: worker
    env_file:
      - .env
    depends_on:
      postgres:
        condition: service_healthy
      redis:
        condition: service_started

  worker_2:
    image: muralikrishna570/studentfeedback-worker:latest
    container_name: student_worker_2
    command: worker
    env_file:
      - .env
    depends_on:
      postgres:
        condition: service_healthy
      redis:
        condition: service_started
⁠2. Create .env file

Create a file named .env in the same directory and configure your secrets:

# Database Configuration
POSTGRES_USER=admin
POSTGRES_PASSWORD=password
POSTGRES_DB=student_db
POSTGRES_HOST=postgres
POSTGRES_PORT=5432

# Redis Configuration
REDIS_HOST=redis
REDIS_PORT=6379

# Admin Security (Required for Admin Dashboard)
ADMIN_SECRET_KEY=change_this_to_a_secure_random_key

# Ngrok (Optional, if using tunneling)
NGROK_AUTHTOKEN=your_ngrok_token_here
⁠3. Run the Application

Start all services:

docker-compose up -d

Access the application at http://localhost:8501⁠.

⁠4. 🌐 Public Access (Ngrok)

If you provided an NGROK_AUTHTOKEN in your .env file, the application automatically creates a secure public tunnel.

To find your public URL: Check the container logs:

docker-compose logs student_app

Look for a log line similar to: Streamlit App Public URL: https://<random-id>.ngrok-free.app


⁠🛠 Features

  • Student Registration: Collect detailed student info (async processing).
  • Feedback System: Students rate courses/professors with sentiment analysis.
  • Admin Dashboard:
    • Secure Login.
    • Analytics: View registration trends, sentiment distribution, and ratings.
    • Data Management: Edit/Delete records directly.
    • Configuration: Manage drop-down options (Universities, Courses) dynamically.
  • Scalable Architecture: Uses Celery workers for heavy lifting.
Tag summary
Recent tags
Content type
Image
Digest
sha256:f6e5408f7…
Size
582.2 MB
Last updated
12 months ago
docker pull muralikrishna570/studentfeedback-app:latest