Rebrand from Casera/MyCrib to honeyDue
Total rebrand across all Go API source files: - Go module path: casera-api -> honeydue-api - All imports updated (130+ files) - Docker: containers, images, networks renamed - Email templates: support email, noreply, icon URL - Domains: casera.app/mycrib.treytartt.com -> honeyDue.treytartt.com - Bundle IDs: com.tt.casera -> com.tt.honeyDue - IAP product IDs updated - Landing page, admin panel, config defaults - Seeds, CI workflows, Makefile, docs - Database table names preserved (no migration needed) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
42
README.md
42
README.md
@@ -1,6 +1,6 @@
|
||||
# Casera API
|
||||
# honeyDue API
|
||||
|
||||
Go REST API for the Casera (MyCrib) property management platform. Powers iOS and Android mobile apps built with Kotlin Multiplatform.
|
||||
Go REST API for the honeyDue property management platform. Powers iOS and Android mobile apps built with Kotlin Multiplatform.
|
||||
|
||||
## Tech Stack
|
||||
|
||||
@@ -31,7 +31,7 @@ This starts PostgreSQL, Redis, the API server, background worker, and admin pane
|
||||
```bash
|
||||
# 1. Clone the repo
|
||||
git clone <repo-url>
|
||||
cd myCribAPI-go
|
||||
cd honeyDueAPI-go
|
||||
|
||||
# 2. Create your environment file
|
||||
cp .env.example .env
|
||||
@@ -41,11 +41,11 @@ cp .env.example .env
|
||||
make docker-dev
|
||||
|
||||
# 4. Seed the database with lookup data (required)
|
||||
docker exec -i casera-db psql -U casera -d casera < seeds/001_lookups.sql
|
||||
docker exec -i honeydue-db psql -U honeydue -d honeydue < seeds/001_lookups.sql
|
||||
|
||||
# 5. (Optional) Seed test data — creates test users, residences, tasks
|
||||
docker exec -i casera-db psql -U casera -d casera < seeds/002_test_data.sql
|
||||
docker exec -i casera-db psql -U casera -d casera < seeds/003_task_templates.sql
|
||||
docker exec -i honeydue-db psql -U honeydue -d honeydue < seeds/002_test_data.sql
|
||||
docker exec -i honeydue-db psql -U honeydue -d honeydue < seeds/003_task_templates.sql
|
||||
|
||||
# 6. Verify the API is running
|
||||
curl http://localhost:8000/api/health/
|
||||
@@ -60,7 +60,7 @@ Use Docker for PostgreSQL and Redis, but run the Go server natively for faster i
|
||||
```bash
|
||||
# 1. Clone and enter the repo
|
||||
git clone <repo-url>
|
||||
cd myCribAPI-go
|
||||
cd honeyDueAPI-go
|
||||
|
||||
# 2. Install Go dependencies
|
||||
make deps
|
||||
@@ -77,9 +77,9 @@ cp .env.example .env
|
||||
# - Set REDIS_URL=redis://localhost:6379/0
|
||||
|
||||
# 5. Seed the database
|
||||
psql -h localhost -p 5433 -U casera -d casera < seeds/001_lookups.sql
|
||||
psql -h localhost -p 5433 -U casera -d casera < seeds/002_test_data.sql
|
||||
psql -h localhost -p 5433 -U casera -d casera < seeds/003_task_templates.sql
|
||||
psql -h localhost -p 5433 -U honeydue -d honeydue < seeds/001_lookups.sql
|
||||
psql -h localhost -p 5433 -U honeydue -d honeydue < seeds/002_test_data.sql
|
||||
psql -h localhost -p 5433 -U honeydue -d honeydue < seeds/003_task_templates.sql
|
||||
|
||||
# 6. Run the API server
|
||||
make run
|
||||
@@ -101,7 +101,7 @@ brew services start postgresql@16
|
||||
brew services start redis
|
||||
|
||||
# Create the database
|
||||
createdb casera
|
||||
createdb honeydue
|
||||
|
||||
# Then follow Option B steps 2-7, using:
|
||||
# DB_HOST=localhost, DB_PORT=5432, POSTGRES_USER=<your-user>, POSTGRES_PASSWORD=<your-password>
|
||||
@@ -116,7 +116,7 @@ Copy `.env.example` to `.env` and configure:
|
||||
| `PORT` | Server port | `8000` | No |
|
||||
| `DEBUG` | Enable debug logging | `true` | No |
|
||||
| `SECRET_KEY` | JWT signing secret (32+ chars) | — | **Yes** |
|
||||
| `POSTGRES_DB` | Database name | `casera` | Yes |
|
||||
| `POSTGRES_DB` | Database name | `honeydue` | Yes |
|
||||
| `POSTGRES_USER` | Database user | `postgres` | Yes |
|
||||
| `POSTGRES_PASSWORD` | Database password | — | Yes |
|
||||
| `DB_HOST` | Database host | `localhost` | Yes |
|
||||
@@ -133,7 +133,7 @@ Copy `.env.example` to `.env` and configure:
|
||||
## Project Structure
|
||||
|
||||
```
|
||||
myCribAPI-go/
|
||||
honeyDueAPI-go/
|
||||
├── cmd/
|
||||
│ ├── api/main.go # API server entry point
|
||||
│ └── worker/main.go # Background worker entry point
|
||||
@@ -266,10 +266,10 @@ All protected endpoints require an `Authorization: Token <token>` header.
|
||||
git push dokku main
|
||||
|
||||
# Seed lookup data
|
||||
cat seeds/001_lookups.sql | dokku postgres:connect casera-db
|
||||
cat seeds/001_lookups.sql | dokku postgres:connect honeydue-db
|
||||
|
||||
# Check logs
|
||||
dokku logs casera-api -t
|
||||
dokku logs honeydue-api -t
|
||||
```
|
||||
|
||||
### Docker Swarm
|
||||
@@ -277,20 +277,20 @@ dokku logs casera-api -t
|
||||
```bash
|
||||
# Build and push production images
|
||||
make docker-build-prod
|
||||
docker push ${REGISTRY}/casera-api:${TAG}
|
||||
docker push ${REGISTRY}/casera-worker:${TAG}
|
||||
docker push ${REGISTRY}/casera-admin:${TAG}
|
||||
docker push ${REGISTRY}/honeydue-api:${TAG}
|
||||
docker push ${REGISTRY}/honeydue-worker:${TAG}
|
||||
docker push ${REGISTRY}/honeydue-admin:${TAG}
|
||||
|
||||
# Deploy the stack (all env vars must be set in .env or environment)
|
||||
docker stack deploy -c docker-compose.yml casera
|
||||
docker stack deploy -c docker-compose.yml honeydue
|
||||
```
|
||||
|
||||
## Related Projects
|
||||
|
||||
- **Mobile App (KMM)**: `../MyCribKMM` — Kotlin Multiplatform iOS/Android client
|
||||
- **Mobile App (KMM)**: `../HoneyDueKMM` — Kotlin Multiplatform iOS/Android client
|
||||
- **Task Logic Docs**: `docs/TASK_LOGIC_ARCHITECTURE.md` — required reading before task-related work
|
||||
- **Push Notification Docs**: `docs/PUSH_NOTIFICATIONS.md`
|
||||
|
||||
## License
|
||||
|
||||
Proprietary — Casera
|
||||
Proprietary — honeyDue
|
||||
|
||||
Reference in New Issue
Block a user