This is a regular Laravel application; it's built on top of Laravel 12 and uses :
In terms of local development, you can use the following requirements:
- PHP 8.2^
- Node.js 16 or more recent
- sqlite as database
If you have these requirements, you can start by cloning the repository and installing the dependencies:
git clone https://github.com/Laravel-SN-Community/laravel.sn
cd laravel.sn
git checkout -b feature/your-feature # or fix/your-fixDon't push directly to the
mainordevbranch. Instead, create a new branch and push it to your branch.
Next, install the dependencies using Composer and NPM:
composer install
npm installAfter that, set up your .env file:
cp .env.example .env
php artisan key:generatePrepare your database and run the migrations:
php artisan migrate --seedLink the storage to the public folder:
php artisan storage:linkIn a separate terminal, build the assets in watch mode:
npm run devFinally, start the development server:
php artisan serve- Email: admin1@gmail.com
- Password: passer
Create GEMINI_API_KEY in your .env file to enable AI features.
You can now access the application at http://localhost:8000 and the admin panel at http://localhost:8000/admin.
Note: By default, emails are sent to the
logdriver. You can change this in the.envfile to something likemailtrap.
Once you are done with the code changes, be sure to run the test suite to ensure everything is still working:
composer testIf everything is green, push your branch and create a pull request:
git commit -am "Your commit message"
git pushVisit github.com/Laravel-SN-Community/laravel.sn/pulls and create a pull request.
Laravel.sn uses a few tools to ensure the code quality and consistency. Of course, Pest is the testing framework of choice, and we also use PHPStan for static analysis.
In terms of code style, we use Laravel Pint to ensure the code is consistent and follows the Laravel conventions.
You run these tools individually using the following commands:
# Lint the code using Pint
composer lint
composer test:lint
# Run PHPStan
composer test:types
# Run the test suite
composer test:unit
# Run all the tools
composer testLaravel.sn is hosted on DigitalOcean and uses Laravel Forge to manage the server and deployments.
this is an open-sourced software licensed under the GNU Affero General Public License
