මේක වැඩ කරන පළමු preview version එකයි. සැබෑ product listings, affiliate account සහ admin login සම්බන්ධ කිරීම තවම කරලා නැහැ. Preview එකේ name එක Findora ලෙස තාවකාලිකව භාවිත කරලා තියෙනවා.
1. මුලින්ම brand සහ products සකස් කරන්න
ඔබේ අවසාන brand name, logo සහ business email තෝරන්න. Products සඳහා නිවැරදි seller links, භාවිතයට අවසර ඇති photos, specifications සහ ඔබ ලියූ descriptions සකස් කරන්න. Sample budgets සහ illustrative photos සැබෑ offer ලෙස publish කරන්න එපා.
2. GitHub repository එකක් හදන්න
- GitHub account එකට login වෙලා New repository තෝරන්න.
- Repository name එකක් දෙන්න. උදාහරණයක්:
findora-website. - ලබාදුන් source ZIP එක extract කරලා project files repository එකට upload කරන්න. ZIP එක හෝ
node_modulesfolder එක upload කරන්න එපා. .openaifolder එක ඔබේ Cloudflare deployment එකට අවශ්ය නැහැ. Passwords, tokens හෝ secret files upload කරන්න එපා.package.json,package-lock.json,astro.config.mjs,src,scriptsසහpublicතිබිය යුතුයි.
3. Cloudflare Pages එකට සම්බන්ධ කරන්න
- Cloudflare account එකට login වෙන්න.
- Workers & Pages → Create application → Pages → Connect to Git වෙත යන්න. Dashboard labels වෙනස් නම් Git repository එකකින් Pages project එකක් හදන option එක තෝරන්න.
- GitHub සම්බන්ධ කරලා ඔබ හදපු repository එක තෝරන්න.
- Production branch:
main. - Framework preset:
Astro. - Build command:
npm run build. - Build output directory:
dist. - Root directory: project එක repository root එකේ නම් හිස්ව තබන්න.
- අවශ්ය environment variable එක:
NODE_VERSION = 22. - Save and Deploy කරන්න. සාර්ථක වුණාම
your-project.pages.devවගේ address එකක් ලැබෙනවා.
4. Products update කරන්න
Draft catalogue editor එකෙන් product details edit කරලා Export catalogue JSON කරන්න. Download වූ file එකේ නම products.json ලෙස තබා GitHub එකේ src/data/products.json replace කර commit කරන්න. Cloudflare එක නැවත build වෙලා site එක update වෙනවා. Editor එකේ draft එක browser එකේ පමණක් save වෙනවා; ඒක Publish කිරීමක් නොවෙයි.
Photos public/images තුළ upload කරලා image path එක /images/filename.jpg ලෙස දාන්න. පිටතින් image URL දානවා නම් https:// URL එකක් භාවිත කරන්න.
5. Decap CMS login එක සකස් කරන්න
/admin/ එක සම්පූර්ණ online content management සඳහා සකස් කළ entry point එකයි. දැනට login enabled නැහැ. public/admin/config.yml තුළ ඔබේ GitHub username/repository, branch සහ OAuth proxy URL යොදන්න. GitHub OAuth App එකක් සහ Cloudflare Worker OAuth handler එකක් සකස් කර secrets Worker settings තුළ පමණක් තබන්න. ඊට පස්සේ public/admin/settings.json තුළ enabled අගය true කර rebuild කරන්න. Deployment පසු login සහ product publish flow එක test කරන්න.
Decap GitHub backend නිල උපදෙස් · OAuth proxy setup උපදෙස්
6. AliExpress affiliate links සම්බන්ධ කරන්න
AliExpress Portals account එකෙන් ඔබට අදාළ eligibility, payout options සහ tracking links තහවුරු කරගන්න. සාමාන්ය product link එක වෙනුවට ඔබට ලබාදුන් affiliate link එක product එකේ affiliateUrl field එකට දාන්න. එවිට product page එකේ purchase button එක පෙනෙනවා. Links සහ selected variant නිවැරදි බව test කරන්න.
7. Public launch එකට පෙර
- Sample products සහ prices verify කර සැබෑ content යොදන්න.
- Contact page සහ privacy policy එකට සැබෑ operator details දාන්න.
src/layouts/Layout.astroහි preview notice සහnoindex,nofollowmeta එක public-ready content සකස් කළ පසු ඉවත් කරන්න.- Actual domain එකෙන් canonical URLs, social preview image සහ sitemap සකස් කරන්න. මේ preview එකේ ඒවා configured නැහැ.
- Mobile, search, filters, saved items, compare සහ affiliate links නැවත test කරන්න.
- CMS authentication සම්බන්ධ කළ පසු draft editor එකෙන් වඩා CMS එක භාවිත කරන්න.
8. පසුව තමන්ගේ domain එකක්
Domain එකක් මිලදීගෙන Pages project එකේ Custom domains තුළ එකතු කරන්න. Cloudflare පෙන්වන DNS පියවර අනුගමනය කරන්න. Domain එකේ ගාස්තුව hosting එකෙන් වෙනමයි. Free hosting සහ වෙනත් services වල limits වැඩිවෙන usage එකට සරිලනවාද බලන්න.
නිල documentation
Cloudflare Pages — Astro deployment guide · Custom domain setup
මේ version එකේ සීමා
Live prices, stock sync, visitor accounts, cloud-synced favourites, newsletter collection සහ analytics මේ version එකේ නැහැ. Favourites සහ comparison මේ browser එකේ save වෙනවා. GitHub / Cloudflare / AliExpress accounts ඔබේම ownership යටතේ සම්බන්ධ කළ යුතුයි; passwords chat එකට එවන්න අවශ්ය නැහැ.