### Start Development Server Source: https://docs.shipany.ai/en Run this command to start the local development server. You can then preview your project in the browser. ```bash pnpm dev ``` -------------------------------- ### Start ngrok Service Source: https://docs.shipany.ai/en/features/payment/creem Use this command to start the ngrok service to expose your local server to the internet. This is necessary for testing webhooks. ```bash ngrok http http://localhost:3000 ``` -------------------------------- ### Install Project Dependencies Source: https://docs.shipany.ai/en Install all necessary project dependencies using pnpm. This command should be run from the project root directory. ```bash pnpm install ``` -------------------------------- ### Copy Environment Variable Example Source: https://docs.shipany.ai/en Create the development environment configuration file by copying the example file. This sets up default environment variables for local development. ```bash cp .env.example .env.development ``` -------------------------------- ### Database Connection String Example Source: https://docs.shipany.ai/en/features/database This is an example of a PostgreSQL connection string for Supabase. Replace '[YOUR-PASSWORD]' with your actual database password. ```text postgresql://postgres.defqvdpquwyqqjlmurkg:[YOUR-PASSWORD]@aws-0-ap-southeast-1.pooler.supabase.com:6543/postgres ``` -------------------------------- ### Example Environment Configuration Source: https://docs.shipany.ai/en This is an example of environment variable configuration for the web application. Configure `.env.development` and `.env.production` files according to your project needs. ```dotenv # ----------------------------------------------------------------------------- # Web Information # ----------------------------------------------------------------------------- NEXT_PUBLIC_WEB_URL = "http://localhost:3000" NEXT_PUBLIC_PROJECT_NAME = "ShipAny" # ----------------------------------------------------------------------------- # Database with Supabase ``` -------------------------------- ### Create Production Environment File Source: https://docs.shipany.ai/en/deploy/deploy-to-cloudflare Copy the example environment file to create a production-specific configuration. Update this file with your production environment settings. ```bash cp .env.example .env.production ``` -------------------------------- ### Install React Email Components Source: https://docs.shipany.ai/en/features/email/resend Install the necessary Resend and React Email packages using pnpm. This command adds the required libraries to your project. ```bash pnpm add resend @react-email/components ``` -------------------------------- ### Example Landing Page Content JSON Source: https://docs.shipany.ai/en This is an example of the JSON structure for landing page content. Update this file to customize your landing page. ```json { "title": "Flux AI Image Generator", "description": "Create stunning AI-generated images with Flux AI.", "features": [ "High-quality image generation", "Easy to use interface", "Fast processing times" ], "cta": { "text": "Try Flux AI Now", "link": "https://www.flux.ai/" } } ``` -------------------------------- ### View Blog List Source: https://docs.shipany.ai/en/features/blog Example URL structure for viewing the list of all published blog posts. Ensure the locale and domain are correctly specified. ```url https://{your-domain}/{locale}/posts ``` -------------------------------- ### Install pnpm Globally Source: https://docs.shipany.ai/en/guide/good-to-know Install the pnpm package manager globally using npm. This is recommended for managing packages in the ShipAny project. ```bash $ npm install -g pnpm ``` -------------------------------- ### Create Wrangler Configuration File Source: https://docs.shipany.ai/en/deploy/deploy-to-cloudflare Copy the example wrangler.toml file to set up Cloudflare deployment configurations. Ensure production variables from .env.production are included in the [vars] section and update the project name. ```bash cp wrangler.toml.example wrangler.toml ``` -------------------------------- ### Check npm Version Source: https://docs.shipany.ai/en/guide/good-to-know Verify your installed npm version. Ensure it meets the recommended version for ShipAny development. ```bash $ npm -v 10.7.0 ``` -------------------------------- ### View Single Blog Post Source: https://docs.shipany.ai/en/features/blog Example URL structure for viewing a specific blog post. Replace placeholders with your domain, locale, and the post's slug. ```url https://{your-domain}/{locale}/posts/{slug} ``` -------------------------------- ### Check Git Version Source: https://docs.shipany.ai/en/guide/good-to-know Verify your installed Git version. This is necessary for version control and accessing your Github repository. ```bash $ git --version git version 2.39.3 (Apple Git-146) ``` -------------------------------- ### Example Localization Text JSON Source: https://docs.shipany.ai/en This JSON file contains localization strings for the website. Update these messages for your project's specific content and keywords. ```json { "greeting": "Welcome to Flux AI", "description": "Your AI Image Generator", "keywords": "flux ai, ai image generator" } ``` -------------------------------- ### Check pnpm Version Source: https://docs.shipany.ai/en/guide/good-to-know Verify your installed pnpm version. Ensure it meets the recommended version for ShipAny development. ```bash $ pnpm -v 9.15.0 ``` -------------------------------- ### Check NodeJS Version Source: https://docs.shipany.ai/en/guide/good-to-know Verify your installed NodeJS version. Ensure it meets the recommended version for ShipAny development. ```bash $ node -v v22.2.0 ``` -------------------------------- ### AI Editor Prompt for Landing Page Content Source: https://docs.shipany.ai/en/tutorials/customize-landing-page Example prompt for using an AI editor like Cursor to generate new Landing Page content. It specifies the product name and provides a URL for content reference. ```text I want to build a landing page for my product named "Flux AI Image Generator", please update the landing page json file, content reference @Web @https://www.flux.ai/ ``` -------------------------------- ### AI Chat Prompt for Landing Page Content Source: https://docs.shipany.ai/en/tutorials/customize-landing-page Example prompt for using AI chat products to rewrite existing Landing Page JSON content. It instructs the AI to focus on a specific product and topic. ```text rewrite this json file with new content for my product, focus on topic "Flux AI Image Generator" ``` -------------------------------- ### Import and Use Feedback Component in Layout Source: https://docs.shipany.ai/en/features/feedback Example of importing and rendering the Feedback component within a Next.js layout file. This component should be placed where it's accessible on your pages, typically near the footer. ```typescript import Footer from "@/components/blocks/footer"; import Header from "@/components/blocks/header"; import { ReactNode } from "react"; import { getLandingPage } from "@/services/page"; import Feedback from "@/components/feedback"; export default async function DefaultLayout({ children, params, }: { children: ReactNode; params: Promise<{ locale: string }>; }) { const { locale } = await params; const page = await getLandingPage(locale); return ( <> {page.header &&
}
{children}
{page.footer &&