crm_OBUO_FARMS
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.
Viewing readonly version of main branch: v29View latest version
A simple CRM application for managing OBUO Farms orders and client information.
- 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
βββ 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
POST /api/orders- Create a new orderGET /api/orders- Get all ordersGET /api/orders/:id- Get specific orderGET /- Main dashboard page
Orders table includes:
- Client information (name, phone, email)
- Order details (type, quantity, delivery date)
- Notes and timestamps
The application automatically initializes the database on startup. No additional setup is required.
- Creating Orders: Use the form on the main page to create new orders
- Email Confirmations: Clients automatically receive email confirmations when orders are created
- Dashboard: View all orders with search, filter, and sort capabilities
- API Access: Use the REST API endpoints for programmatic access
- Fresh Fish
- Frozen Fish
- Live Fish
- Fish Fillet
- Smoked Fish
- Dried Fish
- Catfish
- Tilapia
- Fish Feed
- Other
- β 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