Skip to main content

Installation

On Fresh Project (recommended)#

Create project via curl

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.

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

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.

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

Run database migration.

php artisan migrate

[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_DRIVER=public

Run composer autoload and seeders

composer dump-autoload

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 of dependencies.

npm installnpm run dev

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

php artisan serve