← back to Small Business Builder
README.md
42 lines
# small-business-builder
Template-driven landing-page builder for small businesses.
First vertical: LA salons / barbershops / nail salons. Generic for any small business after that.
- Viewer + admin: `http://127.0.0.1:9760`
- DB: standalone PG `small_business_directory`
- 5 design templates per business
- 3 pricing tiers: free / plus $19 / premium $79
## Quick start
```bash
createdb small_business_directory
psql -d small_business_directory -f migrations/001_init.sql
npm install
npm run server
```
Test in another tab:
```bash
curl -s http://127.0.0.1:9760/healthz
curl -s -X POST http://127.0.0.1:9760/api/scrape-website \
-H 'content-type: application/json' \
-d '{"url":"https://www.rudysbarbershop.com","category":"barbershop"}' | jq
```
Then open `http://127.0.0.1:9760/` in a browser to see the grid populate.
## pm2
```bash
pm2 start ecosystem.config.cjs && pm2 save
```
## Watchdog
```bash
launchctl load ~/Library/LaunchAgents/com.steve.smb-builder-hawk.plist
```