Skip to content

hasanparasteh/kodara

Repository files navigation

Kodara - حل مسئله، ساخت آینده

A Persian website for Kodara, a digital solutions company. This project is configured for static deployment on Cloudflare Workers.

Features

  • Responsive design optimized for Persian (RTL) content
  • Modern CSS Grid and Flexbox layout
  • Custom Persian font (BYekan)
  • Mobile-first responsive design
  • Static file serving with Cloudflare Workers

Project Structure

kodara/
├── index.html          # Main HTML file
├── style.css           # Stylesheet
├── worker.js           # Cloudflare Worker script
├── wrangler.toml       # Cloudflare Workers configuration
├── package.json        # Node.js dependencies
├── fonts/              # Custom fonts
├── logos/              # Client logos
└── assets/             # Images and other assets

Prerequisites

  • Node.js (v16 or higher)
  • npm or yarn
  • Cloudflare account

Installation

  1. Clone the repository:
git clone <repository-url>
cd kodara
  1. Install dependencies:
npm install

Development

To run the project locally with Cloudflare Workers:

npm run dev

This will start a local development server at http://localhost:8787

Deployment

Method 1: Using Wrangler CLI

  1. Install Wrangler globally (if not already installed):
npm install -g wrangler
  1. Login to Cloudflare:
wrangler login
  1. Deploy the project:
npm run deploy

Method 2: Using Cloudflare Dashboard

  1. Go to Cloudflare Workers & Pages
  2. Create a new Worker
  3. Upload the worker.js file
  4. Configure the Worker settings:
    • Set the main module to worker.js
    • Add KV namespace for assets
  5. Deploy

Configuration

The wrangler.toml file contains the basic configuration:

name = "kodara"
main = "worker.js"
compatibility_date = "2024-01-01"

[site]
bucket = "./"

Custom Domain

To use a custom domain:

  1. In your Cloudflare dashboard, go to Workers & Pages
  2. Select your worker
  3. Go to Settings > Triggers
  4. Add your custom domain

Performance

This setup provides:

  • Global CDN distribution
  • Edge caching
  • Automatic HTTPS
  • Fast response times worldwide

Browser Support

  • Modern browsers (Chrome, Firefox, Safari, Edge)
  • Mobile browsers
  • RTL language support

License

MIT License - All rights reserved to Kodara.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published