Skip to content

Lagesan/schoolent_prototype

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Schoolent Prototype

This is a prototype of Schoolent Web edition based on Flask.

Features

  • User registration and login
  • Dashboard with notifications
  • AI chat integration using Spark API
  • Real-time chat with file upload support
  • Socket.IO for real-time communication
  • Marked.js for markdown rendering
  • Bilibili video download
  • User profile management with avatar upload
  • Backend management for admin users
  • Video conversion using FFmpeg

Installation

  1. Clone the repository:

    git clone https://github.com/lagesan/schoolent_prototype.git
    cd schoolent_prototype
  2. Create a virtual environment and activate it:

    python -m venv venv
    source venv/bin/activate  # On Windows use `venv\Scripts\activate`
  3. Install the required packages:

    pip install -r requirements.txt
  4. Initialize the database:

    python server.py

Usage

  1. Run the Flask application:

    python server.py
  2. Edit settings in server.set (it will be created after you first run server.py). Setting example (meaningless API key): authorization=Bearer AEOuoKKfZsasdNQ:kDmSDCDBsfcd

  3. Open your web browser and navigate to http://localhost:1002.

Project Structure

  • server.py: Main application file containing routes and logic.
  • templates: Directory containing HTML templates.
  • uploads: Directory for uploaded files.
  • app.db: SQLite database file (generated automatically).
  • server.set: Server settings, used to set Spark Lite LLM API (generated automatically).
  • chat: Directory for private chat files.
  • users: Directory for user settings, including avatars.
  • gv: Directory for Bilibili video downloads.

Dependencies

  • Flask
  • Flask-SocketIO
  • SQLite
  • Requests
  • Marked.js
  • Python (above 3.6)
  • FFmpeg 4.2.2

Others

Fonts:

License

We are thinking about it.

Acknowledgements

Reference

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published