Skip to main content

Installation

On Fresh Project#

via Curl & Docker (recommended)#

info

Install & enable docker first on your local system before running command for docker mode installation (recommended). If you not enable docker first, badaso will install without docker and you need to migrate and seed your database manually.

Make sure these ports are free on your system :8000 :3306 :6379 for smooth installation on docker mode.

Badaso using laravel sail for docker configuration, please read more about sail here

info

For MacOS, install the gnu-sed first brew install gnu-sed

curl -s "https://badaso-starter.uatech.co.id/your-project-name" | bash

If you using docker mode installation, your application will automatically serve by docker on localhost:8000

If you don't using docker mode installation, you need to migrate and seed the database first on your local system.

Run database migration.

php artisan migrate

Run database seeder

php artisan db:seed --class="Database\Seeders\Badaso\BadasoSeeder"

Create an admin account by typing the following command.

php artisan badaso:admin [email protected] --create

Run your laravel project and access /badaso-dashboard path on your laravel.

php artisan serve

via Composer#

  • Create project via composer
composer create-project badaso/starter your_project_name

Run database migration.

php artisan migrate

Run database seeder

php artisan db:seed --class="Database\Seeders\Badaso\BadasoSeeder"

Create an admin account by typing the following command.

php artisan badaso:admin [email protected] --create

Symlink the storage folder if not yet

php artisan storage:link

Run the following command to install all javascript of dependencies.

npm installnpm run dev

Run your laravel project and access /badaso-dashboard path on your laravel.

php artisan serve

On existing project#

You can install badaso on your existing application easily.

Badaso v2.x For Laravel 8 & 9

composer require badaso/core

Badaso v1.x For Laravel 5,6,7 (not recommended)

composer require badaso/core:^1.0

Run the following commands to install badaso

php artisan badaso:setup

[optional] Symlink the storage folder if not yet

php artisan storage:link

For laravel 8 and existing project, change filesystem to public (readmore for cloud)

FILESYSTEM_DISK=public

Run composer autoload and seeders

composer dump-autoload

Run database migration.

php artisan migrate

v2.x For Laravel 8 & 9

php artisan db:seed --class="Database\Seeders\Badaso\BadasoSeeder"

v1.x For Laravel 5,6,7

php artisan db:seed --class=BadasoSeeder

Create an admin account by typing the following command.

php artisan badaso:admin [email protected] --create

Run the following command to install all javascript of dependencies.

npm installnpm run dev

Run your laravel project and access /badaso-dashboard path on your laravel.

php artisan serve