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#
Open the KikoMart Landing project and open a terminal in its root folder.
-
Install the Jaspr CLI globally:
dart pub global activate jaspr_cli -
If you then see
jaspr: command not found, add the Pub binaries folder to yourPATH. Add this line to~/.zshrcor~/.bashrcand restart the terminal:export PATH="$PATH:$HOME/.pub-cache/bin" -
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#
-
Open
lib/theme.dartand change the brand colour:const kBrandHex = '#C6453E'; // ← your brand colour Replace
web/images/logo.pngwith your own logo.-
Optionally replace the app mockups
web/images/app-food.pngandweb/images/app-shop.png. -
Regenerate the five icons in
web/from your new logo:favicon-32.png,favicon-96.png,icon-192.png,icon-512.pngandapple-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.pnga 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#
-
Build the release version:
flutter clean && flutter pub get && jaspr build -
Go to the build output folder:
cd build/jaspr -
Create the deployment archive:
tar --exclude=code.tar.gz -czf code.tar.gz . -
In the Appwrite Console, go to Sites → your site → Deployments → Create deployment → Manual.
-
Upload
code.tar.gz, set Framework to Other, leave the build and install commands empty, set the fallback file toindex.html, then deploy.
