Commit graph

15 commits

Author SHA1 Message Date
7bead3709a
chore: remove devv-app and external static.devv.ai references; no external data fetch 2025-08-21 17:28:35 +08:00
5a111a3d3e
fix(cors): load /devv-app.js via runtime injection to avoid vite build resolution 2025-08-21 17:19:33 +08:00
ba92de04f2
fix(cors): proxy devv-app.js via server and reference same-origin to avoid CORS 2025-08-21 17:17:01 +08:00
f6cab715e6
build(docker): use --legacy-peer-deps for frontend npm install in container 2025-08-21 16:48:36 +08:00
7591f001c1
build(docker): build frontend and server inside container; remove host build deps 2025-08-21 16:47:05 +08:00
11104dbf29
Improves boolean parsing for 'purchased' field
Updates the StoreItemSchema to handle various input formats for the 'purchased' field, including strings and numbers.

This ensures that the application can correctly interpret boolean values from different sources, preventing data validation errors and improving the user experience.

Adds a preprocess function to the schema to convert string values like "on", "true", "1", "off", "false", and "0", and number values of 1 and 0 to their respective boolean equivalents before validation.
2025-08-21 15:46:00 +08:00
4480be656a
feat(dev-up): 自动安装 Node.js 依赖 2025-08-21 15:09:42 +08:00
2bf49537f8
Fixes incorrect development server port
Updates the development server port from 5173 to 3003.

The documentation and configuration files incorrectly specified port 5173 for the development server. This caused confusion and prevented users from accessing the application at the correct address.

The port is updated in `DEPLOYMENT.md`, `README.md`, `USER_GUIDE.md` and `vite.config.ts` to ensure consistency and proper access to the development server on port 3003.
2025-08-21 14:56:53 +08:00
31801d0991
Updates application port to 3004
WHAT: Updates the application's default port from 8080 to 3004 across various Docker configurations and scripts. This includes changes to Dockerfiles, docker-compose files, and startup scripts. Also updates the vite config.
WHY: Standardizes the port used by the application to 3004 for consistency and to avoid potential conflicts with other services that might be using port 8080.
HOW: Modifies the `EXPOSE` directives in the Dockerfiles, the port mappings in the docker-compose files, the default port in the main application server file, the port in the vite config and the scripts that display the API URL.
2025-08-21 14:55:16 +08:00
1b16056075
Adds .dockerignore file
WHAT: Creates a `.dockerignore` file to exclude unnecessary files and directories from the Docker image.

WHY: Reduces the size of the Docker image and improves build times by preventing the inclusion of development-related artifacts, node modules, and other irrelevant data.

HOW: Adds a `.dockerignore` file with standard exclusions like `node_modules`, development build outputs, temporary files, and hidden system files.
2025-08-21 14:46:44 +08:00
4557728932
Adds Docker setup and basic API endpoints
WHAT: Introduces Dockerfiles for development and production, Docker Compose configurations, a Makefile for common tasks, shell scripts for environment setup/teardown, a basic Express API with SQLite integration.
WHY: Enables easy setup and deployment of the application using Docker. Provides basic API endpoints for managing purchase items.
HOW:
- Creates `docker-compose.dev.yml` and `docker-compose.prod.yml` to define services and volumes.
- Introduces `Dockerfile.dev` and `Dockerfile.prod` to build container images with necessary dependencies.
- Adds `Makefile` with commands for building, running, and managing the application.
- Implements shell scripts for simplified Docker environment management.
- Sets up Express API with endpoints for CRUD operations on purchase items, using SQLite as the database.
- Uses `better-sqlite3` to connect and interact with the SQLite database.
2025-08-21 14:46:11 +08:00
3b638a9509
feat: Marks script as executable
Makes the `start.sh` script executable by changing its permissions.

This ensures that the script can be run directly without needing to
explicitly call `sh start.sh`.
2025-08-21 11:31:32 +08:00
c597af273a
feat: Adds file saver and nanoid
Adds file-saver and nanoid packages for file downloading and unique ID generation functionality.

These dependencies are essential for implementing a new feature that allows users to download generated data and ensure uniqueness across the application. The file-saver package provides the necessary tools to save files on the client-side, while nanoid generates unique IDs.
2025-08-21 11:13:35 +08:00
fe56c5274e
add whole project 2025-08-21 11:07:54 +08:00
3eac3b1e3b
first init 2025-08-21 01:40:47 +08:00