DEV Community

Irnovi Albaweny
Irnovi Albaweny

Posted on • Edited on

5 4

Build Cooking Website Using Badaso - Part 1

Badaso is one of wonderfull Laravel package. It's contain Laravel headless CMS, admin panel, dashboard, builder and API CRUD.
Badaso is open source 100% free, maintain by Uasoft. If you are curious, go directly to the official Badaso page.

1. Installation

Badaso support installation witout Docker or with Docker. In this time, We try install Badaso witout Docker.
Install Badaso is easy. Open terminal and run it curl -s "https://badaso-starter.uatech.co.id/your-project-name" | bash.
We change …/your-project-name with …/cookings.

curl -s "https://badaso-starter.uatech.co.id/cookings" | bash
Enter fullscreen mode Exit fullscreen mode

It will install the Laravel starter project and Badaso it self at a time. If process installation are done, the terminal look below.
install badaso
Ok, now we go to the project cd cookings and php artisan serve. If we not got the error, our browser look Badaso's Welcome Page.
badaso

2. Setup Dashboard

Since we have installed Badaso at step 1, We haven't configured the database yet. This is proven when we enter the dashboard page http://localhost:8000/badaso-dashboard, we got an error.
screen1
Now we setup several stuff. Before it, make sure your composer.json have badaso/core.

"require": {
  "php": "^8.0.2",
  "badaso/core": "^2.4",
  ...
},
Enter fullscreen mode Exit fullscreen mode

Open .env file, and fill it according to your environment

DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=cookings
DB_USERNAME=root
DB_PASSWORD=123456
Enter fullscreen mode Exit fullscreen mode

Don't forget you to create a database first via mysql-client or phpmyadmin.

Run commands below one by one.

php artisan badaso:setup
php artisan migrate
php artisan storage:link
php artisan db:seed --class="Database\Seeders\Badaso\BadasoSeeder"
php artisan badaso:admin admin@admin.com --create
npm install && npm run dev
Enter fullscreen mode Exit fullscreen mode

Last run the server

php artisan serve
Enter fullscreen mode Exit fullscreen mode

Refresh page at http://localhost:8000/badaso-dashboard and at the final we can see the badaso dashboard.
badaso dashboard

Until here we have actually successfully installed badaso dashboard.
For the next chapter, we will continue in another post.

Continue...

Heroku

Build apps, not infrastructure.

Dealing with servers, hardware, and infrastructure can take up your valuable time. Discover the benefits of Heroku, the PaaS of choice for developers since 2007.

Visit Site

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Explore a sea of insights with this enlightening post, highly esteemed within the nurturing DEV Community. Coders of all stripes are invited to participate and contribute to our shared knowledge.

Expressing gratitude with a simple "thank you" can make a big impact. Leave your thanks in the comments!

On DEV, exchanging ideas smooths our way and strengthens our community bonds. Found this useful? A quick note of thanks to the author can mean a lot.

Okay