Skip to content

Commit

Permalink
Initial Netlify example commit
Browse files Browse the repository at this point in the history
  • Loading branch information
eladroz committed Nov 24, 2024
1 parent ae5d3c3 commit a3736ae
Show file tree
Hide file tree
Showing 46 changed files with 206,553 additions and 1,875 deletions.
8 changes: 8 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@

# In local development you get an in-memory database. To deploy to Netlify, create a Turso database
ASTRO_DB_REMOTE_URL=
ASTRO_DB_APP_TOKEN=
# To update products or call the /api/revalidate endpoint, create a password and a JWT secret.
# Secret can be generated by running: node -e "console.log(crypto.randomBytes(32).toString('hex'));"
BASIC_PASSWORD= # minimum 8 chars
JWT_SECRET= # minimum 32 chars
18 changes: 6 additions & 12 deletions astro.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@ import solidJs from '@astrojs/solid-js';
import tailwind from '@astrojs/tailwind';
import icon from 'astro-icon';
import { defineConfig, envField } from 'astro/config';
import db from '@astrojs/db';

// https://astro.build/config
export default defineConfig({
integrations: [tailwind({ applyBaseStyles: false }), icon(), solidJs()],
integrations: [tailwind({ applyBaseStyles: false }), icon(), solidJs(), db()],
// Update to your storefront URL
site: 'https://shop.astro.build',
output: 'server',
Expand Down Expand Up @@ -71,24 +72,17 @@ export default defineConfig({
access: 'public',
optional: true,
}),
// Used by the Astro team for our internal backend
SHOP_API_URL: envField.string({
context: 'server',
access: 'public',
optional: true,
}),
SHOP_API_KEY: envField.string({
context: 'server',
access: 'secret',
optional: true,
}),
US_SHIPPING_RATE_ID: envField.string({
context: 'server',
access: 'secret',
// This is a random ID
default: 'mw5TYW8Dnlh56TRWKan',
}),
INTERNATIONAL_SHIPPING_RATE_ID: envField.string({
context: 'server',
access: 'secret',
// This is a random test key
default: 'miH7VKjht1sYabCgaY1',
}),
},
},
Expand Down
200 changes: 200 additions & 0 deletions data/collections.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,200 @@
[
{
"id": "accessories-and-clearance",
"name": "Accessories and Clearance",
"description": "Accessories and Clearance",
"slug": "accessories-and-clearance",
"createdAt": "2024-10-25T21:42:01.354004",
"updatedAt": "2024-10-25T21:42:01.354010",
"deletedAt": null
},
{
"id": "accessories",
"name": "Accessories",
"description": "Accessories",
"slug": "accessories",
"createdAt": "2024-10-25T21:42:01.354032",
"updatedAt": "2024-10-25T21:42:01.354033",
"deletedAt": null
},
{
"id": "formal-wear",
"name": "Formal Wear",
"description": "Formal Wear",
"slug": "formal-wear",
"createdAt": "2024-10-25T21:42:01.354042",
"updatedAt": "2024-10-25T21:42:01.354043",
"deletedAt": null
},
{
"id": "casual-shoes",
"name": "Casual Shoes",
"description": "Casual Shoes",
"slug": "casual-shoes",
"createdAt": "2024-10-25T21:42:01.354051",
"updatedAt": "2024-10-25T21:42:01.354052",
"deletedAt": null
},
{
"id": "bottomwear-and-clearance",
"name": "Bottomwear and Clearance",
"description": "Bottomwear and Clearance",
"slug": "bottomwear-and-clearance",
"createdAt": "2024-10-25T21:42:01.354063",
"updatedAt": "2024-10-25T21:42:01.354066",
"deletedAt": null
},
{
"id": "bottomwear",
"name": "Bottomwear",
"description": "Bottomwear",
"slug": "bottomwear",
"createdAt": "2024-10-25T21:42:01.354074",
"updatedAt": "2024-10-25T21:42:01.354075",
"deletedAt": null
},
{
"id": "sale",
"name": "Sale",
"description": "Sale",
"slug": "sale",
"createdAt": "2024-10-25T21:42:01.354083",
"updatedAt": "2024-10-25T21:42:01.354084",
"deletedAt": null
},
{
"id": "casual-wear-and-clearance",
"name": "Casual Wear and Clearance",
"description": "Casual Wear and Clearance",
"slug": "casual-wear-and-clearance",
"createdAt": "2024-10-25T21:42:01.354097",
"updatedAt": "2024-10-25T21:42:01.354098",
"deletedAt": null
},
{
"id": "footwear",
"name": "Footwear",
"description": "Footwear",
"slug": "footwear",
"createdAt": "2024-10-25T21:42:01.354105",
"updatedAt": "2024-10-25T21:42:01.354106",
"deletedAt": null
},
{
"id": "shirts",
"name": "Shirts",
"description": "Shirts",
"slug": "shirts",
"createdAt": "2024-10-25T21:42:01.354112",
"updatedAt": "2024-10-25T21:42:01.354113",
"deletedAt": null
},
{
"id": "winterwear-and-clearance",
"name": "Winterwear and Clearance",
"description": "Winterwear and Clearance",
"slug": "winterwear-and-clearance",
"createdAt": "2024-10-25T21:42:01.354124",
"updatedAt": "2024-10-25T21:42:01.354125",
"deletedAt": null
},
{
"id": "winterwear",
"name": "Winterwear",
"description": "Winterwear",
"slug": "winterwear",
"createdAt": "2024-10-25T21:42:01.354132",
"updatedAt": "2024-10-25T21:42:01.354133",
"deletedAt": null
},
{
"id": "sale-and-clearance",
"name": "Sale and Clearance",
"description": "Sale and Clearance",
"slug": "sale-and-clearance",
"createdAt": "2024-10-25T21:42:01.354142",
"updatedAt": "2024-10-25T21:42:01.354143",
"deletedAt": null
},
{
"id": "sports-wear",
"name": "Sports Wear",
"description": "Sports Wear",
"slug": "sports-wear",
"createdAt": "2024-10-25T21:42:01.354151",
"updatedAt": "2024-10-25T21:42:01.354152",
"deletedAt": null
},
{
"id": "formal-wear-and-clearance",
"name": "Formal Wear and Clearance",
"description": "Formal Wear and Clearance",
"slug": "formal-wear-and-clearance",
"createdAt": "2024-10-25T21:42:01.354162",
"updatedAt": "2024-10-25T21:42:01.354163",
"deletedAt": null
},
{
"id": "formal-shoes",
"name": "Formal Shoes",
"description": "Formal Shoes",
"slug": "formal-shoes",
"createdAt": "2024-10-25T21:42:01.354174",
"updatedAt": "2024-10-25T21:42:01.354179",
"deletedAt": null
},
{
"id": "tshirts",
"name": "Tshirts",
"description": "Tshirts",
"slug": "tshirts",
"createdAt": "2024-10-25T21:42:01.354194",
"updatedAt": "2024-10-25T21:42:01.354196",
"deletedAt": null
},
{
"id": "footwear-and-clearance",
"name": "Footwear and Clearance",
"description": "Footwear and Clearance",
"slug": "footwear-and-clearance",
"createdAt": "2024-10-25T21:42:01.354206",
"updatedAt": "2024-10-25T21:42:01.354206",
"deletedAt": null
},
{
"id": "ethnic-wear",
"name": "Ethnic Wear",
"description": "Ethnic Wear",
"slug": "ethnic-wear",
"createdAt": "2024-10-25T21:42:01.354214",
"updatedAt": "2024-10-25T21:42:01.354215",
"deletedAt": null
},
{
"id": "casual-wear",
"name": "Casual Wear",
"description": "Casual Wear",
"slug": "casual-wear",
"createdAt": "2024-10-25T21:42:01.354223",
"updatedAt": "2024-10-25T21:42:01.354224",
"deletedAt": null
},
{
"id": "tshirts-and-clearance",
"name": "Tshirts and Clearance",
"description": "Tshirts and Clearance",
"slug": "tshirts-and-clearance",
"createdAt": "2024-10-25T21:42:01.354271",
"updatedAt": "2024-10-25T21:42:01.354277",
"deletedAt": null
},
{
"id": "sports-shoes",
"name": "Sports Shoes",
"description": "Sports Shoes",
"slug": "sports-shoes",
"createdAt": "2024-10-25T21:42:01.354286",
"updatedAt": "2024-10-25T21:42:01.354287",
"deletedAt": null
}
]
108 changes: 108 additions & 0 deletions data/pokemons.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
[
"Pikachu",
"Lucario",
"Greninja",
"Gardevoir",
"Mimikyu",
"Rayquaza",
"Sylveon",
"Garchomp",
"Zoroark",
"Metagross",
"Tyranitar",
"Hydreigon",
"Volcarona",
"Aegislash",
"Dragapult",
"Cinderace",
"Corviknight",
"Toxtricity",
"Hatterene",
"Grimmsnarl",
"Eternatus",
"Zacian",
"Zamazenta",
"Urshifu",
"Regieleki",
"Spectrier",
"Calyrex",
"Inteleon",
"Rillaboom",
"Decidueye",
"Incineroar",
"Primarina",
"Zeraora",
"Marshadow",
"Necrozma",
"Lunala",
"Solgaleo",
"Tapu Koko",
"Golisopod",
"Lycanroc",
"Yveltal",
"Xerneas",
"Greninja",
"Talonflame",
"Goodra",
"Noivern",
"Genesect",
"Volcarona",
"Reshiram",
"Zekrom",
"Kyurem",
"Zoroark",
"Chandelure",
"Krookodile",
"Empoleon",
"Infernape",
"Torterra",
"Luxray",
"Garchomp",
"Roserade",
"Deoxys",
"Metagross",
"Salamence",
"Blaziken",
"Sceptile",
"Swampert",
"Aggron",
"Flygon",
"Altaria",
"Absol",
"Lugia",
"Ho-Oh",
"Celebi",
"Suicune",
"Tyranitar",
"Umbreon",
"Espeon",
"Scizor",
"Heracross",
"Houndoom",
"Kingdra",
"Porygon-Z",
"Giratina",
"Darkrai",
"Cresselia",
"Gallade",
"Rotom",
"Glaceon",
"Mamoswine",
"Togekiss",
"Yanmega",
"Leafeon",
"Gliscor",
"Weavile",
"Magnezone",
"Elektross",
"Chandelure",
"Haxorus",
"Volcarona",
"Mienshao",
"Bisharp",
"Hydriegon",
"Meloetta",
"Chesnaught",
"Delphox",
"Vikavolt"
]
Loading

0 comments on commit a3736ae

Please sign in to comment.