Skip to content
Konson22Public

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

31 Commits

Folders and files

Repository files navigation

MileSoftware Marketing

Laravel 12 + Inertia React marketing site for https://asaasvantage.com.

Setup

composer install
cp .env.example .env
php artisan key:generate
npm install
npm run build

Point the web server document root at marketing/public for asaasvantage.com.

Env

Variable Purpose
APP_URL This site (https://asaasvantage.com)
PLATFORM_URL / VITE_PLATFORM_URL Central platform (https://platform.asaasvantage.com) for Sign in / Get started and marketing APIs

VITE_PLATFORM_URL is baked in at build time — always run npm run build after changing it.

Production

APP_ENV=production
APP_DEBUG=false
APP_URL=https://asaasvantage.com
PLATFORM_URL=https://platform.asaasvantage.com
VITE_PLATFORM_URL=https://platform.asaasvantage.com

composer install --no-dev --optimize-autoloader
php artisan config:cache
php artisan route:cache
php artisan view:cache
npm ci && npm run build

On the central platform (asaas), set MARKETING_URL=https://asaasvantage.com so CORS allows the products page to load registerable apps. Then:

php artisan apps:sync-product-urls
php artisan db:seed --class=ApplicationClientSeeder

Dev

composer run dev

That starts php artisan serve (http://asaas.local:8001) and Vite (:5173) together. Open the site with the port. To run them separately:

php artisan serve
npm run dev

Cross-app links

  • Sign in → ${PLATFORM_URL}/login
  • Get started → ${PLATFORM_URL}/get-started/{applicationCode}
  • Contact form → POST ${PLATFORM_URL}/api/v1/marketing/contact
  • Products / pricing / nav → website server fetches GET ${PLATFORM_URL}/api/v1/marketing/products (cached) and shares it to Inertia. Product switching on Pricing uses same-origin GET /api/catalog/products/{slug}.

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages