Skip to content
Merged
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
4 changes: 4 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
PUBLIC_MARKKET_URL=https://api.markket.place
PUBLIC_STORE_SLUG=express
PUBLIC_POSTHOG_KEY=
PUBLIC_URL=https://express.markket.place
15 changes: 11 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,28 @@ on:
branches: [ main ]
# Allows you to run this workflow manually from the Actions tab on GitHub.
workflow_dispatch:

# Allow this job to clone the repo and create a page deployment
permissions:
contents: read
pages: write
id-token: write


env:
PUBLIC_MARKKET_URL: ${{ secrets.PUBLIC_MARKKET_URL }}
PUBLIC_STORE_SLUG: ${{ secrets.PUBLIC_STORE_SLUG }}
PUBLIC_POSTHOG_KEY: ${{ secrets.PUBLIC_POSTHOG_KEY }}
PUBLIC_URL : ${{ secrets.PUBLIC_URL }}

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout your repository using git
uses: actions/checkout@v3
uses: actions/checkout@v5
- name: Install, build, and upload your site
uses: withastro/action@v0
uses: withastro/action@v4
# with:
# path: . # The root location of your Astro project inside the repository. (optional)
# node-version: 16 # The specific version of Node that should be used to build your site. Defaults to 16. (optional)
Expand All @@ -36,4 +43,4 @@ jobs:
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1
uses: actions/deploy-pages@v4
61 changes: 61 additions & 0 deletions .github/workflows/test_pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
name: Test Pull Request

on:
# Runs on pull requests
pull_request:
branches: ["main"]
types: [opened, synchronize, reopened]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# Basic permissions for testing
permissions:
contents: read

env:
BUILD_PATH: "." # default value when not using subfolders
PUBLIC_URL : ${{ secrets.PUBLIC_URL }}

jobs:
test:
name: Test Build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
cache: npm
cache-dependency-path: ${{ env.BUILD_PATH }}/package-lock.json

- name: Install dependencies
run: npm ci
working-directory: ${{ env.BUILD_PATH }}

- name: Create environment file
run: |
echo "PUBLIC_MARKKET_URL=${{ secrets.PUBLIC_MARKKET_URL }}" >> .env
echo "PUBLIC_STORE_SLUG=${{ secrets.PUBLIC_STORE_SLUG }}" >> .env
echo "PUBLIC_POSTHOG_KEY=${{ secrets.PUBLIC_POSTHOG_KEY }}" >> .env
echo "PUBLIC_URL=${{secrets.PUBLIC_URL}}" >> .env
working-directory: ${{ env.BUILD_PATH }}

- name: Test Build with Astro
run: |
npm run build
working-directory: ${{ env.BUILD_PATH }}

- name: Test build output
run: |
if [ -d "dist" ]; then
echo "✅ Build successful - dist folder created"
ls -la dist/
else
echo "❌ Build failed - no dist folder found"
exit 1
fi
working-directory: ${{ env.BUILD_PATH }}
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,6 @@ build-product/
.DS_Store
dist/
package-lock.json
.astro/
.astro/
*.local
*.backup
12 changes: 12 additions & 0 deletions LICENSE.MD
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,15 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

The Satire License (TSL)

This software was designed as a parody of something similar but serious.

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software with specific restrictions FOR the purposes of satire, evil, or
advancing evil, including but not limited to:

Horatian, Juvenalian, Menippean, Irony, Hyperbole, Understatement, Allegory,
bringing down the American Empire and ending the War on Drugs.
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,22 @@
# Markket Express

Plantilla e-commerce compatible con Astro. Usando elementos de [Creative Tim](https://www.creative-tim.com/astro)

Usando [markket](https://de.markket.place) como backend.

Adicionalmnete, este es el primer repositorio de ejemplo en español.

Clonar este repositorio para comenzar, o usa `npm create astro@latest` para crear un nuevo proyecto de astro

Usando [cafecito](https://www.npmjs.com/package/cafecito) y el astro content layer es facil acceder al contenido estatico en Strapi,
para generar todo el website en cada deploy. (store, pages, articles, products, albums)

Información dinamica se resuelve con react en cada visita, por ejemplo, revisar el estado de una transacción.

[Hosting gratis con paginas de github](https://docs.github.com/es/pages/getting-started-with-github-pages/creating-a-github-pages-site)

[Digital Ocean app platform](https://www.digitalocean.com/products/app-platform)

# Welcome to [Astro Ecommerce](https://www.creative-tim.com/astro)

![version](https://img.shields.io/badge/version-1.1.0-blue.svg) [![GitHub issues open](https://img.shields.io/github/issues/creativetimofficial/astro-ecommerce.svg?maxAge=2592000)](https://github.com/creativetimofficial/astro-ecommerce/issues?q=is%3Aopen+is%3Aissue) [![GitHub issues closed](https://img.shields.io/github/issues-closed-raw/creativetimofficial/astro-ecommerce.svg?maxAge=2592000)](https://github.com/creativetimofficial/astro-ecommerce/issues?q=is%3Aissue+is%3Aclosed)
Expand Down
8 changes: 5 additions & 3 deletions astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@ import { defineConfig } from 'astro/config';
// https://astro.build/config
import react from "@astrojs/react";

const PUBLIC_URL = process.env.PUBLIC_URL || 'https://express.markket.place';

// https://astro.build/config
export default defineConfig({
integrations: [react()],
site: 'https://creativetimofficial.github.io',
base: '/astro-ecommerce'
});
site: PUBLIC_URL,
base: '/'
});
Loading