• Blog
  • Docs
  • Pricing
  • We’re hiring!
Log inSign up
eddie_walk

eddie_walk

crm_OBUO_FARMS

Public
Like
crm_OBUO_FARMS
Home
Code
4
backend
3
frontend
4
shared
1
README.md
Branches
1
Pull requests
Remixes
History
Environment variables
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
Sign up now
Code
/
README.md
Code
/
README.md
Search
6/2/2025
Viewing readonly version of main branch: v29
View latest version
README.md

OBUO Farms CRM

A simple CRM application for managing OBUO Farms orders and client information.

Features

  • Order form for collecting client information and order details
  • SQLite database for storing orders
  • Automatic email confirmations to clients
  • Dashboard for viewing past orders
  • RESTful API for order management

Project Structure

β”œβ”€β”€ backend/
β”‚   β”œβ”€β”€ database/
β”‚   β”‚   β”œβ”€β”€ migrations.ts    # Database schema
β”‚   β”‚   └── queries.ts       # Database operations
β”‚   β”œβ”€β”€ routes/
β”‚   β”‚   β”œβ”€β”€ orders.ts        # Order API endpoints
β”‚   β”‚   └── static.ts        # Static file serving
β”‚   └── index.ts             # Main Hono app
β”œβ”€β”€ frontend/
β”‚   β”œβ”€β”€ components/
β”‚   β”‚   β”œβ”€β”€ App.tsx          # Main React app
β”‚   β”‚   β”œβ”€β”€ OrderForm.tsx    # Order submission form
β”‚   β”‚   └── Dashboard.tsx    # Orders dashboard
β”‚   β”œβ”€β”€ index.html           # Main HTML template
β”‚   β”œβ”€β”€ index.tsx            # Frontend entry point
β”‚   └── style.css            # Styles
└── shared/
    └── types.ts             # Shared TypeScript types

API Endpoints

  • POST /api/orders - Create a new order
  • GET /api/orders - Get all orders
  • GET /api/orders/:id - Get specific order
  • GET / - Main dashboard page

Database Schema

Orders table includes:

  • Client information (name, phone, email)
  • Order details (type, quantity, delivery date)
  • Notes and timestamps

Setup

The application automatically initializes the database on startup. No additional setup is required.

Usage

  1. Creating Orders: Use the form on the main page to create new orders
  2. Email Confirmations: Clients automatically receive email confirmations when orders are created
  3. Dashboard: View all orders with search, filter, and sort capabilities
  4. API Access: Use the REST API endpoints for programmatic access

Order Types Available

  • Fresh Fish
  • Frozen Fish
  • Live Fish
  • Fish Fillet
  • Smoked Fish
  • Dried Fish
  • Catfish
  • Tilapia
  • Fish Feed
  • Other

Features

  • βœ… Responsive design for mobile and desktop
  • βœ… Real-time order creation with validation
  • βœ… Automatic email confirmations to clients
  • βœ… Search and filter orders by multiple criteria
  • βœ… Sort orders by date, client name, or delivery date
  • βœ… Visual status indicators for delivery dates
  • βœ… SQLite database with proper schema
  • βœ… RESTful API with error handling
  • βœ… TypeScript for type safety
FeaturesVersion controlCode intelligenceCLIMCP
Use cases
TeamsAI agentsSlackGTM
DocsShowcaseTemplatesNewestTrendingAPI examplesNPM packages
PricingNewsletterBlogAboutCareers
We’re hiring!
Brandhi@val.townStatus
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Open Source Pledge
Terms of usePrivacy policyAbuse contact
Β© 2025 Val Town, Inc.