Skip to content

vctb12/nexus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AKA Store UAE (Static-first, Netlify-friendly)

Premium UAE gaming storefront built with modular HTML/CSS/JS (no framework), dynamic JSON-driven content, and optional serverless persistence.

Dynamic data architecture

The site is data-driven through JSON sources:

  • data/site.json: canonical business config (store profile, shipping, VAT, promo rules, emirates, feature flags)
  • data/nav.json, data/footer.json: shared navigation/footer model
  • data/content/*.json: section/page content
  • data/i18n/en.json, data/i18n/ar.json: UI string dictionaries
  • products.json: product catalog + compatibility metadata + SEO fields
  • data/deals.json: deal entries tied to productId
  • data/blog/posts.json + data/blog/posts/*.md: dynamic blog index + article content

Runtime loaders in js/core/ fetch these files and render each page.

Project structure

  • js/core: app-level data loading + shared layout
  • js/pages: per-page render/controllers
  • js/lib: pricing, security, i18n helpers
  • js/components: reusable UI components (future expansion)
  • netlify/functions/order-create.js: order creation endpoint with safe demo fallback

Checkout, order, and demo fallback

/.netlify/functions/order-create

  • If backend env vars are present (Supabase/Resend), this can run in server mode.
  • Without backend config, checkout falls back to local demo storage and writes a demo outbox entry shown in Admin.

Order schema documentation: data/models/order.schema.json.

Arabic and i18n

Arabic routes are preserved:

  • /ar/index.html
  • /ar/products.html
  • /ar/checkout.html
  • /ar/contact.html

Pages are RTL and product names remain English from catalog data.

Build, QA, and deploy

npm run build
npm run validate-assets
npm run audit-links
npm run test:unit
npm run test:e2e

npm run build validates critical JSON and regenerates:

  • sitemap.xml
  • rss.xml

Netlify remains static publish (publish = ".") with functions under netlify/functions.

Supabase and Resend enablement

Set in Netlify environment variables when ready:

  • SUPABASE_URL
  • SUPABASE_SERVICE_ROLE_KEY
  • RESEND_API_KEY
  • ORDER_NOTIFY_TO

Without these, demo mode remains functional and visible in Admin.

About

Gaming Store

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors