Please note that to get a migration of cities, countries, and states. Please run the following
php artisan db:seed
php artisan migrate --seed --seeder=GeneralSeeder
php artisan passport:install
php artisan serve
When claiming site, handle from backend is changed to eg. {tenantDomain}.localhost:8000/?token={tokenObtained} instead of https://whitecoatdomain.com/getstarted?token={token}&physician={tenant_id} crucial when passing url to claim button on email.
Note to self: As a result ofFK - foreign key the cities table is the parent key with a reference at users tableIMPORTANT
For Stripe get 'api' keys for webhook and secret and rerun php artisan cashier:webhook to reconfigure for the inputted 'api
These events should be enabled for webhook events - customer.deleted
customer.subscription.created
customer.subscription.deleted
customer.subscription.updated
customer.updated
invoice.payment_action_required
invoice.payment_succeeded
Replace "vendor/stancl/tenancy/src/Resolvers/DomainTenantResolver.php" with content of "DomainTenantResolver.php" in root folder
For Services making calls to our api
Please prefix services to denote incoming requests.
Create a client using php artisan passport:client --client to generate a client ID for each service.
Save the client_id and client_secret to your app
Make a request to https://whitecoatdomain.com/oauth/token and add the access token generated to your subsequent requests via Authorization Bearer
NOTE
Remember to change APP_ENV to 'production' and APP_DEBUG to false
- Integrate company stripe account
- Develop Domain module (API endpoints)
- Setup and test TSL (both for central and for tenants)
- Increase AWS EC2 from tmicro to tLarge or tXLarge
- Setup 2 instances of app
- Change session from file to db
- Setup NGINX Load Balancer for 2 app instances
- Adjust About Me generation for User Creation by Self, Ask for institution and Names for this generation
- Integrate WCD stripe account