// Backend file: backend/createBusinessesCollection.js // This function creates a "Businesses" CMS collection with all specified fields, // including a structured "Location" object for latitude and longitude. import { collections } from '@wix/data'; export async function createBusinessesCollection() { try { const result = await collections.createDataCollection({ collectionId: "Businesses", displayField: "Business Name", displayName: "Businesses", fields: [ { key: "Business Name", displayName: "Business Name", type: "TEXT", required: true }, { key: "Slug", displayName: "Slug", type: "TEXT" }, { key: "Business Logo", displayName: "Business Logo", type: "IMAGE" }, { key: "Cover Image", displayName: "Cover Image", type: "IMAGE" }, { key: "Business Photos", displayName: "Business Photos", type: "MEDIA_GALLERY" }, { key: "Description", displayName: "Description", type: "TEXT" }, { key: "Category", displayName: "Category", type: "TEXT" }, { key: "Subcategory", displayName: "Subcategory", type: "TEXT" }, { key: "Phone", displayName: "Phone", type: "TEXT" }, { key: "Email", displayName: "Email", type: "TEXT" }, { key: "Website", displayName: "Website", type: "TEXT" }, { key: "Street Address", displayName: "Street Address", type: "TEXT" }, { key: "City", displayName: "City", type: "TEXT" }, { key: "State", displayName: "State", type: "TEXT" }, { key: "ZIP Code", displayName: "ZIP Code", type: "TEXT" }, { key: "Country", displayName: "Country", type: "TEXT" }, // Structured location object { key: "Location", displayName: "Location", type: "OBJECT" }, { key: "Service Area", displayName: "Service Area", type: "TEXT" }, { key: "Hours", displayName: "Hours", type: "TEXT" }, { key: "Rating", displayName: "Rating", type: "NUMBER" }, { key: "Review Count", displayName: "Review Count", type: "NUMBER" }, { key: "Years in Business", displayName: "Years in Business", type: "NUMBER" }, { key: "Verified Business", displayName: "Verified Business", type: "BOOLEAN" }, { key: "Featured Business", displayName: "Featured Business", type: "BOOLEAN" }, { key: "Active Listing", displayName: "Active Listing", type: "BOOLEAN" }, { key: "Business Owner", displayName: "Business Owner", type: "TEXT" }, { key: "Date Added", displayName: "Date Added", type: "DATETIME" }, { key: "Last Updated", displayName: "Last Updated", type: "DATETIME" } ], permissions: { insert: "ADMIN", read: "ANYONE", remove: "ADMIN", update: "ADMIN" } }); return result; } catch (error) { console.error(error); throw error; } }
top of page
MowMap-LLC-logo

Find Your Next Contractor

Born in West Lafayette by Purdue students, MowMap lets you compare and book local landscaping and blue-collar contractors all in one place.

Expert Contractor Marketplace

Verified Profiles

Access detailed contractor profiles with verified credentials and real-time availability for every project.

Real-Time Booking

Securely book your blue-collar services instantly, with availability updates pushed directly to your mobile device.

Transparent Pricing

Compare clear, upfront pricing with no hidden fees, ensuring you get the best value for your landscaping needs.

Secure Payments

Pay only after the work is completed, protected by our secure marketplace payment system for your peace of mind.

Local Expertise

Verified Reviews

Connect with local contractors who understand your neighborhood's unique landscape and seasonal requirements.

Read verified reviews from homeowners to ensure you hire a contractor with a proven track record of excellence.

Leading Professionals

How It Works

01

Compare Profiles

Explore detailed contractor profiles, including verified reviews, pricing, and availability to find the perfect fit for your project.

02

Select Your Choice

Review the available dates and pricing options to select a contractor who matches your timeline and budget requirements.

03

Book & Confirm

Secure your booking with a single click. Our platform handles all the details, ensuring a seamless and professional experience.

Lawn Maintenance
Plumbing
Electrical
HVAC
Snow Removal
Installation
Carpentry
Painting
bottom of page