A modern farm-to-table application connecting local farmers with restaurants, built with Deno Fresh, PostgreSQL, and Tailwind CSS.
The project follows Domain-Driven Design principles:
farm-to-table/
├── components/ # Shared UI components
├── domains/ # Domain-specific modules
│ ├── farmers/ # Farmer domain
│ ├── restaurants/ # Restaurant domain
│ ├── inventory/ # Inventory domain
│ ├── orders/ # Order domain
│ └── users/ # User domain
├── islands/ # Interactive UI components
├── routes/ # Application routes
├── static/ # Static assets
├── utils/ # Utility functions
├── db/ # Database connections and models
├── services/ # Shared services
├── main.ts # Entry point
├── deno.json # Deno configuration
└── fresh.config.ts # Fresh framework configuration
Clone the repository:
git clone https://github.com/DarbeesChasingRainbows/farm-to-table.git
cd farm-to-table
Create a .env
file with your database configuration:
DATABASE_URL=postgres://username:password@localhost:5432/farmtotable
FIREBASE_API_KEY=your_firebase_api_key
FIREBASE_AUTH_DOMAIN=your_firebase_auth_domain
FIREBASE_PROJECT_ID=your_firebase_project_id
Start the development server:
deno task start
Open http://localhost:8000 in your browser.
deno task start
- Start the development serverdeno task build
- Build the production versiondeno task preview
- Preview the production builddeno task test
- Run testsMIT