More Premium Hugo Themes Premium Nextjs Themes

NextJs Laravel Boilerplate F E

This is front-end for laravel-api made with Nextjs

NextJs Laravel Boilerplate F E

This is front-end for laravel-api made with Nextjs

Author Avatar Theme by amjeed-ay
Github Stars Github Stars: 7
Last Commit Last Commit: Sep 8, 2022 -
First Commit Created: Dec 18, 2023 -
NextJs Laravel Boilerplate F E screenshot

Overview

The Front-End Project is a demonstration of how to implement roles and permissions in a Laravel-React/Next.js web application. It showcases the ability to assign permissions to different roles, create new roles, and manage these permissions from an admin panel. The project utilizes Laravel Breeze - Next.js Edition as the starter kit for the backend API, and Spatie Laravel Permission for implementing the roles and permissions functionality.

Features

  • Role and Permission Management: Create and assign permissions to roles, allowing for granular control over user access.
  • Backend API Integration: Utilizes Laravel Breeze - Next.js Edition as the backend starter kit to handle API requests.
  • Frontend Implementation: Implements the roles and permissions functionality on the frontend using React and Next.js.

Installation

To install and run the Front-End Project, follow these steps:

  1. Clone the Back-End Repository from here.
  2. Install the necessary dependencies by running the following commands:
cd NextJs-Laravel-Boilerplate-B
composer install
npm install
  1. Rename the .env.example file to .env and update the necessary configuration settings, such as the database credentials.
  2. Generate a new application key by running the following command:
php artisan key:generate
  1. Migrate the database tables by running the migration command:
php artisan migrate
  1. Seed the database with initial data by running the following command:
php artisan db:seed
  1. Start the backend server by running the command:
php artisan serve
  1. Clone the Front-End Repository from here.
  2. Install the necessary dependencies by running the following commands:
cd breeze-next
npm install
  1. Rename the .env.example file to .env and update the necessary configuration settings, such as the API endpoint.
  2. Start the frontend server by running the command:
npm run dev
  1. Access the Front-End Project by visiting the following URL: https://laravel-nextjs.netlify.app
  2. Log in using the following credentials:

Summary

The Front-End Project is a demonstration of how to implement roles and permissions functionality in a Laravel-React/Next.js web application. It showcases the ability to create and assign permissions to roles, manage these permissions from an admin panel, and integrates the backend API using Laravel Breeze - Next.js Edition. With the provided installation guide, users can easily set up and explore the project’s functionality.