Commit graph

6 commits

Author SHA1 Message Date
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