This is a prototype of Schoolent Web edition based on Flask.
- 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
-
Clone the repository:
git clone https://github.com/lagesan/schoolent_prototype.git cd schoolent_prototype
-
Create a virtual environment and activate it:
python -m venv venv source venv/bin/activate # On Windows use `venv\Scripts\activate`
-
Install the required packages:
pip install -r requirements.txt
-
Initialize the database:
python server.py
-
Run the Flask application:
python server.py
-
Edit settings in server.set (it will be created after you first run server.py). Setting example (meaningless API key): authorization=Bearer AEOuoKKfZsasdNQ:kDmSDCDBsfcd
-
Open your web browser and navigate to
http://localhost:1002
.
- 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.
- Flask
- Flask-SocketIO
- SQLite
- Requests
- Marked.js
- Python (above 3.6)
- FFmpeg 4.2.2
Fonts:
We are thinking about it.
- Bilibili API: click here