LogoKikoMart Docs

Landing Page: Setup & Publish

Configure, brand, run and publish the KikoMart landing website.

The landing page is a website built with Jaspr (Dart) that promotes your business and shows live data from your Appwrite project.

Requirements#

  • Flutter SDK 3.47.2 or a compatible stable release (includes Dart).
  • Android Studio or Visual Studio Code.

Install the Jaspr CLI#

  1. Open the KikoMart Landing project and open a terminal in its root folder.

  2. Install the Jaspr CLI globally:

    dart pub global activate jaspr_cli
    
  3. If you then see jaspr: command not found, add the Pub binaries folder to your PATH. Add this line to ~/.zshrc or ~/.bashrc and restart the terminal:

    export PATH="$PATH:$HOME/.pub-cache/bin"
    
  4. Install the project's dependencies:

    dart pub get
    

Connect to your Appwrite project#

Open lib/data/appwrite_config.dart and replace the four defaultValues with your own:

const kAppwriteEndpoint = String.fromEnvironment(
  'APPWRITE_ENDPOINT',
  defaultValue: 'https://fra.cloud.appwrite.io/v1', // ← your region
);

const kAppwriteProjectId = String.fromEnvironment(
  'APPWRITE_PROJECT_ID',
  defaultValue: 'YOUR_PROJECT_ID', // ← your project ID
);

const kAppwriteDatabaseId = String.fromEnvironment(
  'APPWRITE_DATABASE_ID',
  defaultValue: 'YOUR_DATABASE_ID', // ← your database ID
);

const kAppwriteBucketId = String.fromEnvironment(
  'APPWRITE_BUCKET_ID',
  defaultValue: 'YOUR_BUCKET_ID', // ← your storage bucket ID
);

Brand colour and assets#

  1. Open lib/theme.dart and change the brand colour:

    const kBrandHex = '#C6453E'; // ← your brand colour
    
  2. Replace web/images/logo.png with your own logo.

  3. Optionally replace the app mockups web/images/app-food.png and web/images/app-shop.png.

  4. Regenerate the five icons in web/ from your new logo: favicon-32.png, favicon-96.png, icon-192.png, icon-512.png and apple-touch-icon.png.

Two details are easy to get wrong when creating the icons:

  • Centre the logo on a square canvas, don't stretch it. A wide logo squeezed into a square favicon looks distorted.
  • Give apple-touch-icon.png a white background. iOS places transparent icons on black.

Run it locally#

jaspr serve

Open http://localhost:8080 to see your landing page.

Build and publish#

  1. Build the release version:

    flutter clean && flutter pub get && jaspr build
    
  2. Go to the build output folder:

    cd build/jaspr
    
  3. Create the deployment archive:

    tar --exclude=code.tar.gz -czf code.tar.gz .
    
  4. In the Appwrite Console, go to Sites → your site → Deployments → Create deployment → Manual.

  5. Upload code.tar.gz, set Framework to Other, leave the build and install commands empty, set the fallback file to index.html, then deploy.