Skip to content

Latest commit

 

History

History
84 lines (61 loc) · 2.81 KB

README.md

File metadata and controls

84 lines (61 loc) · 2.81 KB

Card Maker 3D

Card Maker 3D is an interactive web application that allows you to create, customize, and share 3D greeting cards.

Live Demo

Screenshot App Screenshot

Features

  • 3D Editor: Real-time 3D visualization of your card using Three.js.
  • Customization:
    • Add text with various fonts.
    • Add shapes and stickers.
    • Import your own images or scanned physical cards.
  • Interactive Views: Open/close the card, view from different angles (Front, Inside, Back).
  • Sharing:
    • Save your project locally.
    • Download a standalone HTML file of your card to give to friends (works offline!).
    • Publish to the cloud (AWS) to get a shareable link.
  • Camera integration: Scan physical artwork directly into the card template.

Getting Started

Prerequisites

  • Node.js (optional, solely for running the local dev server easily).
  • A modern web browser (Chrome, Firefox, Edge, Safari).

Running Locally

  1. Clone the repository:

    git clone https://github.com/mikeevans82/card-maker.git
    cd card-maker
  2. Start the development server:

    If you have Node.js installed:

    npx http-server .

    Or simply open index.html using a generic static file server (like VS Code's "Live Server" extension).

  3. Open in Browser: Navigate to http://localhost:8080 (or whatever port your server indicates).

Web Hosting Requirements

This application is a Static Web App. It can be hosted on any provider that supports static files (HTML, CSS, JS, Images).

Requirements:

  • HTTPS: Required for features like Camera access and Crypto APIs (used by AWS libraries).
  • Single Page App / Rewrite Rules: Not strictly required as it uses hash routing or single views, but ensure index.html is the entry point.
  • Amplify/AWS: If you want to use the "Cloud Tools" (Login, Publish to Cloud), you must provide a valid aws-exports.js file in the root directory.

AWS Integration (Optional)

To enable cloud features (Auth, Storage):

  1. Install AWS Amplify CLI.
  2. Initialize Amplify in the project root:
    amplify init
  3. Push the backend configuration:
    amplify push
    This will generate the aws-exports.js file needed for the app to connect to your AWS backend.

Project Structure

  • index.html: The main entry point containing the UI, styles, and logic.
  • src/: Contains configuration files.
  • amplify/: AWS Amplify backend configuration files.

Technology Stack

  • Three.js: For 3D rendering.
  • AWS Amplify: For content storage and authentication (Gen 2 / v6 JS SDK).
  • Vanilla JS: No moden frameworks (React/Vue/Angular) used for the UI, keeping it lightweight and hackable.