1
0
mirror of https://github.com/ZeroCatDev/ClassworksKV.git synced 2025-07-02 04:24:21 +00:00

58 Commits

Author SHA1 Message Date
SunWuyuan
f1dba22f75
1.0.5 v1.0.5 2025-05-25 15:45:29 +08:00
SunWuyuan
6cfa20fe76
Update server listening address to '0.0.0.0' for external access; modify console log to reflect new address format. 2025-05-25 15:45:10 +08:00
SunWuyuan
2b077553f7
1.0.4 v1.0.4 2025-05-25 15:40:41 +08:00
SunWuyuan
0b4fe90c94
Add database migration function to streamline setup and build processes; replace direct migration calls with a reusable function for better code organization and error handling. 2025-05-25 15:35:36 +08:00
SunWuyuan
05ece2514b
Enhance README.md with ClassworksKV backend description and usage instructions; remove obsolete database files (db.db and db.db-journal) to clean up the project structure. 2025-05-25 15:12:50 +08:00
SunWuyuan
d6ab4895d5
Update dependencies in package.json and pnpm-lock.yaml to latest versions, including @opentelemetry packages and debug, enhancing performance and security. 2025-05-25 09:28:35 +08:00
SunWuyuan
ea21f0b8f3
1.0.3 v1.0.3 2025-05-25 09:26:02 +08:00
SunWuyuan
35d05df925
Refactor project structure by reorganizing imports, removing unused files, and updating .gitignore to include additional environment and build directories. Delete legacy migration scripts and Docker configurations to streamline the codebase. 2025-05-25 09:25:58 +08:00
SunWuyuan
0a8cd084d6
Add concurrency settings to Docker publish workflow to manage job execution and prevent overlap. 2025-05-25 09:18:58 +08:00
SunWuyuan
d8097d9552
1.0.2 v1.0.2 2025-05-25 09:08:24 +08:00
SunWuyuan
e0bb8389a6
Update Docker publish workflow to trigger on version tags matching "v*" and add a step to display generated image tags, improving visibility in the build process. 2025-05-25 09:03:43 +08:00
SunWuyuan
32782b7db1
1.0.1 v1.0.1 2025-05-25 08:48:52 +08:00
SunWuyuan
d5f64c92ec
Refactor Docker publish workflow to trigger only on the main branch and reintroduce image tag display step, enhancing clarity in the build process. 2025-05-25 08:48:49 +08:00
SunWuyuan
3179d19a21
1.0.0 v1.0.0 2025-05-25 08:43:06 +08:00
SunWuyuan
fad9867637
Update project version to 0.0.0 in package.json, enhance README.md with deployment badge, and modify Docker publish workflow to trigger on both main and develop branches. 2025-05-25 08:42:46 +08:00
SunWuyuan
f703bb2a8b
Refactor database setup in classworks.js to implement a recursive copy function for configuration files and directories, enhancing the copying process and improving clarity in console messages. 2025-05-24 20:50:07 +08:00
SunWuyuan
09875b35c1
Update .gitignore to exclude Prisma database data directory and modify database setup in classworks.js to use prisma migrate deploy for migrations, enhancing deployment process. 2025-05-24 20:42:15 +08:00
SunWuyuan
93b9b1c6f5
Enhance database setup in classworks.js to include automatic migration execution after setting the DATABASE_URL. Update Dockerfile to use Node.js version 22-alpine for improved compatibility. Modify docker-compose.yml to change volume mapping for data storage. 2025-05-24 20:00:17 +08:00
SunWuyuan
ee2787a413
Refactor Docker publish workflow to remove database matrix strategy, simplifying image building process. Update image tagging to exclude database suffix and adjust conditions for push actions based on event type. 2025-05-24 17:54:13 +08:00
SunWuyuan
f580ffe8fd
Update database setup in classworks.js to default to SQLite, enhance error messages with Chinese translations, and improve comments for clarity. Refactor main function to streamline execution flow based on command line arguments. 2025-05-24 17:52:44 +08:00
SunWuyuan
f3c24c24b8
Refactor Docker setup to consolidate services into a single app container using SQLite. Update Dockerfile to streamline dependency installation and set entrypoint for the application. 2025-05-24 17:50:51 +08:00
SunWuyuan
1f56b8032f
Remove deprecated Docker image workflow and consolidate Docker publish workflow to streamline image building and pushing for multiple database types. 2025-05-24 16:45:07 +08:00
SunWuyuan
dfb7413b05
Update Docker publish workflow to use lowercase image names for MySQL, PostgreSQL, and SQLite for consistency. 2025-05-24 16:37:51 +08:00
SunWuyuan
2d20755a0c
Update Docker publish workflow to use lowercase image names for consistency across MySQL, PostgreSQL, and SQLite images. 2025-05-24 16:36:40 +08:00
SunWuyuan
14d3587720
Update authentication middleware in auth.js to improve password hint functionality and error handling. Revise device management routes in kv.js to support password hint retrieval and modification, enhancing security and user experience. 2025-05-24 16:34:37 +08:00
SunWuyuan
91e515b553
Rename project from "serverexpress" to "ClassworksKV" and update version to 1.0.0 in package.json. 2025-05-24 16:28:56 +08:00
SunWuyuan
420ba4277d
Update Dockerfile to handle database-specific commands and enhance Prisma schema for PostgreSQL and SQLite. Introduce new AccessType enum and KVStore model for improved data management. Clean up SQLite schema by removing unused fields. 2025-05-24 16:18:38 +08:00
SunWuyuan
0e490e5def
Refactor Dockerfile to include build arguments for database type and set production environment. Update npm commands for dependency installation and Prisma client generation. Modify GitHub Actions workflow to support multiple database types in Docker image builds. Adjust Express server port and enhance logging in www.js. Update Prisma schema to use SQLite and clean up model definitions. Revise routes in kv.js to improve key-value management functionality and update front-end fetch calls in index.ejs for batch import and UUID generation. 2025-05-24 14:57:57 +08:00
SunWuyuan
cf646d619f
Add bcrypt and js-base64 dependencies in package.json and pnpm-lock.yaml. Enhance authentication middleware in auth.js with password hint functionality and improve error handling. Update device management routes in kv.js to support password hint retrieval and modification, ensuring better security and user experience. 2025-05-18 14:33:16 +08:00
SunWuyuan
b312756d5f
Refactor authentication middleware in auth.js to improve site key validation and device access control. Update access types to use an enum in the Prisma schema. Enhance rate limiting in rateLimiter.js for API and write operations. Modify routes in kv.js to support new access types and password management features, including a new endpoint for password removal. 2025-05-18 10:54:41 +08:00
SunWuyuan
3bff254a22
Implement device authentication middleware and Prisma model for device management. Update routes to include device info retrieval and password management, enhancing security and functionality. 2025-05-17 20:02:55 +08:00
SunWuyuan
69887f9c47
Update batch rate limiter in rateLimiter.js to allow 10 operations per minute instead of 5, enhancing throughput for bulk operations. 2025-05-11 13:50:22 +08:00
SunWuyuan
810491fd2f
Enable static file serving in app.js, implement a batch import endpoint in kv.js for bulk key-value pair uploads, and add a corresponding rate limiter. Enhance the front-end in index.ejs with a form for batch data import and improve styling for better user experience. 2025-05-11 12:04:06 +08:00
SunWuyuan
4a8b19c0b8
Enhance CORS configuration in app.js to support path-based options and set max age for preflight requests. Update dependencies in package.json and pnpm-lock.yaml to latest versions, including express, body-parser, http-errors, and morgan. 2025-05-11 11:35:08 +08:00
SunWuyuan
6897a082e7
Integrate OpenTelemetry instrumentation into app.js, add global and method-based rate limiting middleware, and enhance CORS configuration. Update package.json to include new dependencies for OpenTelemetry and rate limiting tests. 2025-05-11 11:30:26 +08:00
SunWuyuan
1b05d73405
Remove unused homework and config models from Prisma schema; update home page rendering in index.js to simplify response. 2025-05-11 07:58:29 +08:00
SunWuyuan
fc066a88ff
Add /check endpoint to app.js for API status verification 2025-05-10 21:53:16 +08:00
SunWuyuan
28f6a6bc80
Update app.js to use fileURLToPath for directory resolution and comment out unused imports. Modify Docker image reference in workflow configuration for deployment consistency. 2025-05-10 15:04:17 +08:00
SunWuyuan
4c8e38e805
Refactor app.js to streamline routing by removing unused API endpoints and integrating the KV store router directly. Clean up errorHandler.js by removing unnecessary comments and imports. 2025-05-10 13:50:19 +08:00
SunWuyuan
eeacc317a9
app.js 重构为 ES 模块,新增 KV 存储功能,并实现请求超时中间件。更新 package.json 中的依赖项并移除未使用的路由。完善 README,补充项目特性与安装使用说明。 2025-05-10 13:47:02 +08:00
SunWuyuan
c526478bec
1 2025-03-16 16:21:23 +08:00
SunWuyuan
7ba9963a6c
1 2025-03-16 10:10:35 +08:00
SunWuyuan
774cec6a5d
1 2025-03-15 17:26:55 +08:00
SunWuyuan
3ad77e6602
1 2025-03-15 17:21:46 +08:00
SunWuyuan
2d055f6400
1 2025-03-02 16:36:01 +08:00
SunWuyuan
24f64553fe
1 2025-02-23 14:55:50 +08:00
SunWuyuan
6cca2de64f
1 2025-02-23 14:55:19 +08:00
SunWuyuan
8c77c3aceb
1 2025-02-23 14:53:29 +08:00
SunWuyuan
0c8637f663
1 2025-02-23 14:51:02 +08:00
SunWuyuan
f0f9568eb6
1 2025-02-23 14:36:22 +08:00