Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 9 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,21 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: "20"
cache: "npm"
node-version: "22.21.1"
cache: "yarn"

- name: Install Dependencies
run: npm ci
run: |
corepack enable
yarn install --frozen-lockfile

- name: Run Linter
run: npm run check
run: yarn check

- name: Run Tests
run: npm run test -- --run # Run once, not in watch mode
run: yarn test --run
2 changes: 1 addition & 1 deletion .github/workflows/validate-checkout.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: '18'
node-version: '22.21.1'

- name: Install dependencies
run: |
Expand Down
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
yarn.lock
package-lock.json


Expand Down
12 changes: 5 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
# Stage 1: Build
FROM node:lts-alpine AS build
FROM node:22.21.1-alpine AS build
WORKDIR /app
COPY package.json package-lock.json* ./
# Usamos npm install en lugar de ci si no hay package-lock.json consistente, pero ci es mejor para CI/CD.
# Asumidremos que package-lock.json podría no existir o no estar sincronizado, pero intentaremos instalar.
RUN npm install
COPY package.json yarn.lock ./
RUN corepack enable && yarn install --frozen-lockfile
COPY . .
RUN npm run build
RUN yarn build

# Stage 2: Runtime
FROM node:lts-alpine AS runtime
FROM node:22.21.1-alpine AS runtime
WORKDIR /app

# Copiada de dependencias y build
Expand Down
80 changes: 54 additions & 26 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,24 @@
<p align=center>Tienda e-commerce de toallas y textiles personalizados construida con Astro 5, Shopify Storefront API, Appwrite, Transbank y PayPal. Incluye panel de administración, gestión de órdenes, emails transaccionales vía Resend y pipeline de CI/CD.</p>

<h2 align="center">
<a target="_blank" href="https://storeplate.netlify.app/" rel="nofollow">👀 Demo</a>
<a target="_blank" href="https://toallaalacarta.netlify.app/" rel="nofollow">👀 Demo</a>
</h2>

<p align=center>

<a href="https://github.com/withastro/astro/releases/tag/astro@5.15.3" alt="Contributors">
<img src="https://img.shields.io/static/v1?label=ASTRO&message=5.15.3&color=BC52EE&logo=astro" alt="astro version"/>
</a>
<a href="https://github.com/zeon-studio/storeplate/blob/main/LICENSE">
<img src="https://img.shields.io/github/license/zeon-studio/storeplate" alt="license"></a>
<a href="https://github.com/Medalcode/Toallaalacarta/actions/workflows/ci.yml">
<img src="https://github.com/Medalcode/Toallaalacarta/actions/workflows/ci.yml/badge.svg" alt="CI status"/>
</a>
<a href="https://github.com/withastro/astro/releases/tag/astro@5.16.3">
<img src="https://img.shields.io/static/v1?label=ASTRO&message=5.16%2B&color=BC52EE&logo=astro" alt="astro version"/>
</a>
<img src="https://img.shields.io/static/v1?label=Node&message=22.21.1&color=339933&logo=nodedotjs" alt="node version"/>
<img src="https://img.shields.io/static/v1?label=Yarn&message=1.22&color=2C8EBB&logo=yarn" alt="yarn version"/>
<a href="https://github.com/Medalcode/Toallaalacarta/blob/main/LICENSE">
<img src="https://img.shields.io/github/license/Medalcode/Toallaalacarta" alt="license"/>
</a>
<img src="https://img.shields.io/github/languages/code-size/Medalcode/Toallaalacarta" alt="code size"/>

<img src="https://img.shields.io/github/languages/code-size/zeon-studio/storeplate" alt="code size">

<a href="https://github.com/zeon-studio/storeplate/graphs/contributors">
<img src="https://img.shields.io/github/contributors/zeon-studio/storeplate" alt="contributors"></a>
</p>

## 📌 Características principales
Expand Down Expand Up @@ -90,15 +93,35 @@ src/

## 🚀 Getting Started

### 📦 Dependencies
### 📦 Requisitos

| Herramienta | Versión mínima |
|---|---|
| Node.js | 22.21.1 |
| Yarn | 1.22 |
| Astro | 5.16+ |
| Tailwind CSS | 4.1+ |

> El gestor de paquetes oficial del proyecto es **Yarn**. No uses `npm install` para evitar inconsistencias en el lockfile.

- shopify
- astro 5.15+
- node v22.20+
- npm v10.2+
- tailwind v4.1+
### ⚙️ Variables de entorno

<!-- get Shopify storefront API access token-->
Copia `.env.example` a `.env` y completa los valores:

```bash
cp .env.example .env
```

| Variable | Descripción |
|---|---|
| `PUBLIC_SHOPIFY_STOREFRONT_ACCESS_TOKEN` | Token de acceso al Storefront API de Shopify |
| `PUBLIC_SHOPIFY_STORE_DOMAIN` | Dominio de tu tienda (`*.myshopify.com`) |
| `PUBLIC_SHOPIFY_API_SECRET_KEY` | Clave secreta de la app Shopify |
| `RESEND_API_KEY` | API key de [Resend](https://resend.com) para emails transaccionales |
| `EMAIL_FROM` | Dirección remitente de emails |
| `EMAIL_REPLY_TO` | Dirección de respuesta |
| `PUBLIC_SITE_URL` | URL base del sitio (e.g. `https://toallaalacarta.netlify.app`) |
| `ADMIN_EMAILS` | Emails de administradores separados por coma |

## 🛒 Retrieve Shopify Token & Add Demo Products

Expand Down Expand Up @@ -166,30 +189,35 @@ src/

4. Add the products you want to display in the hero slider to this collection.

### 👉 Install Dependencies
### 👉 Instalar dependencias

```bash
yarn install
```

### 👉 Modo desarrollo

```bash
npm install
yarn dev
```

### 👉 Development Command
### 👉 Build de producción

```bash
npm run dev
yarn build
```

### 👉 Build Command
### 👉 Preview del build

```bash
npm run build
yarn preview
```

<!-- reporting issue -->

## 🐞 Reporting Issues
## 🐞 Reportar Issues

We use GitHub Issues as the official bug tracker for this Template. Please Search [existing issues](https://github.com/zeon-studio/storeplate/issues). It’s possible someone has already reported the same problem.
If your problem or idea has not been addressed yet, feel free to [open a new issue](https://github.com/zeon-studio/storeplate/issues/new).
Usa el [issue tracker de este repositorio](https://github.com/Medalcode/Toallaalacarta/issues) para reportar bugs o proponer mejoras. Revisa primero si ya existe un issue similar antes de abrir uno nuevo.

## 📝 Licencia

Expand Down
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@
"transbank-sdk": "^6.1.1",
"vite": "^7.2.6"
},
"resolutions": {
"vite": "^7.2.6"
},
"devDependencies": {
"@tailwindcss/forms": "^0.5.10",
"@tailwindcss/typography": "^0.5.19",
Expand Down
Loading