This repository contains a ready-to-use Laravel 11 and React JS boilerplate application for an AI/API-based SAAS. It provides a foundation for creating, integrating, and launching features, along with custom packages and credit consumption rules.
Clone the repository using the following command:
git clone https://github.com/arslanstack/saas-boilerplate.git
After cloning the project, navigate into the project directory and install dependencies:
cd saas-boilerplate
composer install
npm install
Create a .env file and set up the necessary environment variables:
cp .env.example .env
php artisan key:generate
Set up your database and Stripe keys in the .env file:
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=yourdatabasename
DB_USERNAME=root
DB_PASSWORD=
STRIPE_PUBLIC_KEY=
STRIPE_SECRET_KEY=
STRIPE_WEBHOOK_KEY=
Run migrations and seeders to set up the database:
php artisan migrate --seed
Start the Laravel server and compile assets:
php artisan serve
npm run dev
After implementing a feature or fix, use the following commands to commit and push your changes:
git add .
git commit -m "Describe the feature"
git push -u origin