- Add Import module for parsing JSON and creating businesses with associations - Add `mix localspot.import` task for CLI-based imports - Add admin import page with drag-and-drop file upload at /admin/import - Include sample import JSON and Buffalo NY business data (40 businesses) - Support for importing hours and photos with each business 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
57 lines
2 KiB
JSON
57 lines
2 KiB
JSON
{
|
|
"businesses": [
|
|
{
|
|
"name": "Sample Coffee Shop",
|
|
"description": "A cozy neighborhood coffee shop with locally roasted beans.",
|
|
"category": "coffee-shops",
|
|
"street_address": "100 Example Street",
|
|
"city": "Columbus",
|
|
"state": "OH",
|
|
"zip_code": "43215",
|
|
"latitude": 39.9700,
|
|
"longitude": -83.0000,
|
|
"phone": "6145550100",
|
|
"email": "hello@samplecoffee.example",
|
|
"website": "https://samplecoffee.example",
|
|
"locally_owned": true,
|
|
"hours": [
|
|
{"day": 0, "closed": true},
|
|
{"day": 1, "opens_at": "07:00", "closes_at": "18:00"},
|
|
{"day": 2, "opens_at": "07:00", "closes_at": "18:00"},
|
|
{"day": 3, "opens_at": "07:00", "closes_at": "18:00"},
|
|
{"day": 4, "opens_at": "07:00", "closes_at": "18:00"},
|
|
{"day": 5, "opens_at": "07:00", "closes_at": "18:00"},
|
|
{"day": 6, "opens_at": "08:00", "closes_at": "16:00"}
|
|
],
|
|
"photos": [
|
|
{
|
|
"url": "https://example.com/photos/coffee-shop.jpg",
|
|
"alt_text": "Interior of Sample Coffee Shop",
|
|
"primary": true
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Sample Bookstore",
|
|
"description": "Independent bookstore featuring local authors and rare finds.",
|
|
"category": "retail",
|
|
"street_address": "200 Book Lane",
|
|
"city": "Columbus",
|
|
"state": "OH",
|
|
"zip_code": "43215",
|
|
"latitude": 39.9650,
|
|
"longitude": -82.9950,
|
|
"phone": "6145550200",
|
|
"locally_owned": true,
|
|
"hours": [
|
|
{"day": 0, "opens_at": "12:00", "closes_at": "17:00"},
|
|
{"day": 1, "opens_at": "10:00", "closes_at": "19:00"},
|
|
{"day": 2, "opens_at": "10:00", "closes_at": "19:00"},
|
|
{"day": 3, "opens_at": "10:00", "closes_at": "19:00"},
|
|
{"day": 4, "opens_at": "10:00", "closes_at": "19:00"},
|
|
{"day": 5, "opens_at": "10:00", "closes_at": "21:00"},
|
|
{"day": 6, "opens_at": "10:00", "closes_at": "21:00"}
|
|
]
|
|
}
|
|
]
|
|
}
|