diff --git a/.env b/.env new file mode 100644 index 0000000..28f3f7f --- /dev/null +++ b/.env @@ -0,0 +1,42 @@ +# Optional overrides for compose.yaml +CLIENT_PORT=8081 +SERVER_PORT=5001 +DB_PORT=5433 +DB_NAME=apex_rentals + +# Required for auth flows beyond local smoke tests. +JWT_SECRET=local-dev-jwt-secret +JWT_EXPIRES_IN=7d + +# Postgres connection details. +DB_HOST=localhost +DB_USER=postgres +DB_PASSWORD=postgres + +# Optional third-party integrations. Leave blank for local-only runs. +GEMINI_API_KEY= +EMAIL_HOST= +EMAIL_USER= +EMAIL_PASS= +MPESA_CONSUMER_KEY= +MPESA_CONSUMER_SECRET= +MPESA_SHORTCODE= +MPESA_PASSKEY= +MPESA_CALLBACK_URL=http://localhost:5001/api/payments/callback + +# Optional super admin seed overrides. +SUPER_ADMIN_NAME=Apex Super Admin +SUPER_ADMIN_EMAIL=admin@apex.local +SUPER_ADMIN_PASSWORD=Admin123! + +# Optional starter landlord and tenant seed overrides. +TENANT_NAME=Kamau Tenant +TENANT_EMAIL=kamau1@gmail.com +LANDLORD_NAME=Kamau Landlord +LANDLORD_EMAIL=kamau3@gmail.com +USER_PASSWORD=123456789 +STARTER_PROPERTY_NAME=Kamau Heights +STARTER_PROPERTY_ADDRESS=Lumumba Drive, Nairobi +STARTER_OCCUPIED_UNIT=A1 +STARTER_VACANT_UNIT=A2 +STARTER_RENT_AMOUNT=25000 diff --git a/.env.example b/.env.example index 128818a..791aef3 100644 --- a/.env.example +++ b/.env.example @@ -1,11 +1,17 @@ # Optional overrides for compose.yaml CLIENT_PORT=8081 SERVER_PORT=5000 -MONGO_PORT=27017 -MONGO_DB=apex_rentals +DB_PORT=5432 +DB_NAME=apex_rentals # Required for auth flows beyond local smoke tests. JWT_SECRET=local-dev-jwt-secret +JWT_EXPIRES_IN=7d + +# Postgres connection details. +DB_HOST=localhost +DB_USER=postgres +DB_PASSWORD= # Optional third-party integrations. Leave blank for local-only runs. GEMINI_API_KEY= diff --git a/.gitignore b/.gitignore index 9143c8d..78a223d 100644 --- a/.gitignore +++ b/.gitignore @@ -2,4 +2,3 @@ server/node_modules server/.env client/node_modules -client/vite.config.js \ No newline at end of file diff --git a/client/.gitignore b/client/.gitignore index 2f8ccca..f06235c 100644 --- a/client/.gitignore +++ b/client/.gitignore @@ -1,3 +1,2 @@ node_modules dist -vite.config.js diff --git a/client/index.html b/client/index.html index 60726ff..4ecf799 100644 --- a/client/index.html +++ b/client/index.html @@ -3,8 +3,21 @@
+ +