Skip to content

andreas0480/3dmakers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

3DMakers (Phase 1 scaffold)

This repo is set up for a phased build:

  • Phase 1: Infrastructure + CMS + basic content (this scaffold)
  • Phase 2: Shop / eCommerce (catalog, cart, checkout, orders)
  • Phase 3: Interactive tools (STL upload + pricing agent)

What you get in Phase 1

  • Dockerized stack: Postgres + Directus (headless CMS) + Next.js web app
  • API-first CMS: Directus provides REST/GraphQL + Admin UI
  • AI-agent friendly content: scripts/seed-directus.mjs creates the pages collection and upserts content from content/pages.json

Local run (Docker)

  1. Start services:
# If you have Docker Compose v2:
#   docker compose up -d --build
#
# If your system uses Docker Compose v1 (common when `docker compose` fails):
docker-compose up -d --build
  1. Open:
  • CMS: http://localhost:8055 (Directus)
  • Web: http://localhost:3000
  1. Seed basic content (creates pages and inserts items):
CMS_PUBLIC_URL=http://localhost:8055 \
DIRECTUS_ADMIN_EMAIL=admin@3dmakers.local \
DIRECTUS_ADMIN_PASSWORD=change-me \
node scripts/seed-directus.mjs

Then visit:

  • / (home)
  • /services
  • /materials
  • /contact

Configuration

  • Template: see env.example
  • Compose: docker-compose.yml

For production you must set strong values for:

  • DIRECTUS_KEY
  • DIRECTUS_SECRET
  • DIRECTUS_ADMIN_PASSWORD

AI-agent CMS changes (why this works)

Directus is API-first. An AI agent can:

  • create/update collections and fields (/collections, /fields)
  • create/update content items (/items/...)
  • publish content changes without manual UI work

This repo includes one concrete example: scripts/seed-directus.mjs.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published