Skip to content

ewredewir/seng472-chatbot

Repository files navigation

User Authentication System

A simple Gradio web application with MongoDB integration for user authentication.

Prerequisites

  • Python 3.x
  • MongoDB server running locally on default port (27017)
  • Virtual environment (recommended)

Setup

  1. Create and activate virtual environment:
python3 -m venv venv
source venv/bin/activate  # On Windows: venv\Scripts\activate
  1. Install dependencies:
pip install -r requirements.txt
  1. Create a .env file in the project root with the following content:
MONGODB_URI=mongodb://localhost:27017/
DB_NAME=SENG472
COLLECTION_NAME=user
  1. Make sure MongoDB is running locally on port 27017

Running the Application

  1. Activate the virtual environment (if not already activated):
source venv/bin/activate  # On Windows: venv\Scripts\activate
  1. Run the application:
python app.py
  1. Open your web browser and navigate to the URL shown in the terminal (typically http://127.0.0.1:7860)

Features

  • User signup with email and password
  • User login verification
  • MongoDB integration with singleton pattern
  • Environment variable configuration

About

A Gradio-based chatbot application powered by Google’s GenAI, providing an interactive web interface for conversational AI with customizable prompts and real-time responses.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages