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: v36View latest version
A dual-interface CRM application for OBUO Farms with separate client and admin portals.
- Client Portal: Clean, simple order form for customers
- Admin Dashboard: Complete order management with authentication
- SQLite database for storing orders
- Automatic email confirmations to clients
- RESTful API for order management
- Simple, customer-friendly order form
- No backend data exposed to clients
- Automatic email confirmations
- Mobile-responsive design
- Professional OBUO Farms branding
- Secure login required
- Complete order management dashboard
- Create new orders manually
- View all orders with search/filter/sort
- Order statistics and analytics
- Logout functionality
Default Admin Credentials:
- Username:
admin - Password:
obuo2024
Note: Change these credentials for production use
βββ 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