This is a fully functional Software as a Service (SaaS) project using Laravel 11, React, Tailwind.css, and Stripe for online payments. This project is designed to provide a robust foundation for any SaaS application, with features tailored for credit-based usage and seamless payment integration.
All credits go to @Codeholic on yt. Amazing mastermind!
This project includes the following features:
🔹 Create Features and Charge Credits: Users can access various features by using credits. Each feature has a specified credit cost.
🔹 Feature Management: Control which features are published on the website directly from the database.
🔹 Credit Assignment: Assign the required number of credits to each feature.
🔹 Free Credits on Registration: Specify the number of free credits given to users upon registration.
🔹 Credit Deduction: Automatically deduct credits when a user utilizes a feature.
🔹 Feature Blocking: Block access to features if the user does not have enough credits.
🔹 Package Management: Define multiple tiers of credit packages, including the number of credits and the price for each package.
🔹 Stripe Integration: Implement Stripe to allow users to purchase more credits.
🔹 Usage Tracking: Track the history of feature usage for each user.
- Laravel 11: Backend framework to handle server-side logic and database interactions.
- React: Frontend library for building user interfaces.
- Tailwind.css: Utility-first CSS framework for styling.
- Stripe: Payment processing platform to handle credit purchases.
Follow these steps to set up the project on your local machine:
-
Clone the Repository:
git clone https://github.com/tarzann419/laravel-react-saas.git cd saas-project
-
Install Backend Dependencies:
composer install
-
Install Frontend Dependencies:
npm install
-
Set Up Environment Variables:
Copy the
.env.example
file to.env
and update the necessary settings, especially database and Stripe API keys.cp .env.example .env php artisan key:generate
-
Run Migrations:
php artisan migrate
-
Start the Development Server:
php artisan serve npm run dev
After setting up the project, you can start using the application by navigating to http://localhost:8000
in your browser. Here are some key functionalities:
- Registration and Login: Create an account and log in to access features.
- Feature Access: Utilize available features and monitor credit usage.
- Purchase Credits: Buy additional credits through Stripe payment integration.
- Admin Controls: Use admin functionalities to manage features and credit packages.
We welcome contributions to improve this project! Here’s how you can contribute:
-
Fork the Repository:
Click the "Fork" button at the top right of this page to create a copy of this repository in your GitHub account.
-
Clone Your Fork:
git clone https://github.com/tarzann419/laravel-react-saas.git cd laravel-react-saas
-
Create a Branch:
git checkout -b feature-branch
-
Make Your Changes:
Implement your changes and commit them with clear and concise messages.
-
Push to Your Fork:
git push origin feature-branch
-
Create a Pull Request:
Navigate to the original repository and click the "New Pull Request" button to submit your changes for review.
This project is licensed under the MIT License. See the LICENSE file for more details.
Thank you for checking out this project! We look forward to your contributions and hope this project helps you build a powerful SaaS application. If you have any questions or need further assistance, feel free to open an issue or contact us.