Technical test from a company - Laravel 8 | REST Api | Livewire | Boostrap

Overview

Contacts CRUD (Laravel 8) (Demo)

Introduction

A simple CRUD for manage contacts using Laravel 8. All transaccions work through an REST API.

Tech stack

BACK END & REST API: Laravel 8

FRONT END: Blade | Javascript | Bootstrap.

DATABASE: Mysql

Installation && Configurations

Create database

I'm using Msyql.

Create .env file & Configure database

# Database
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=database
DB_USERNAME=username
DB_PASSWORD=password

(.env file could be a copy of .env.example file given in the root directory)

REPLACE:

{database} by your database name created.

{username} by your username name created.

{password} by your password created.

Install PHP and JS dependencies

composer install

npm install

(you could use npm run production or npm run watch if you want to modify the code)

Artisan commands

Generate the laravel key && copy/paste in APP_KEY env var

php artisan key:generate --show

Running Migrations

php artisan migrate

Seed the database

php artisan db:seed

Serving Laravel

php artisan serve

NPM Styles and Scripts are generated using Laravel Mix.

npm run <command>

(Example: npm run dev or npm run prod or npm run watch)

Storage link

php artisan storage:link

API Documentation

Get all contacts

GET | /contacts

Get a specific contact by id

GET | /contacts/{id}/view

Create a new contact - (Data needed: name*, last_name*, email*, phone1, phone2, phone3)

POST | /contacts

Edit a specific contact

PUT | /contacts/{id}

Delete a specific contact

DELETE | /contacts/{id}

It is based on Laravel Boilerplate (Current: Laravel 8.*)

Official Documentation

Click here for the official documentation

License of Laravel Boilerplate

MIT: http://anthony.mit-license.org

You might also like...
The power of webpack, distilled for the rest of us.
The power of webpack, distilled for the rest of us.

Introduction Laravel Mix provides a clean, fluent API for defining basic webpack build steps for your applications. Mix supports several common CSS an

 CRUD SIMPLES E INTUITIVO FEITO EM PHP+REST
CRUD SIMPLES E INTUITIVO FEITO EM PHP+REST

crudrest 🚧 CRUD SIMPLES E INTUITIVO FEITO EM PHP+REST 🚀 Em construção... 🚧 Descrição do Projeto Exemplo de um CRUD feito em PHP utilizando do REST

Laravel API starter Kit will provide you with the tools for making API's that everyone will love
Laravel API starter Kit will provide you with the tools for making API's that everyone will love

Laravel API Starter Kit Laravel API starter Kit will provide you with the tools for making API's that everyone will love, API Authentication is alread

Hydra is a zero-config API boilerplate with Laravel Sanctum that comes with excellent user and role management API out of the box
Hydra is a zero-config API boilerplate with Laravel Sanctum that comes with excellent user and role management API out of the box

Hydra - Zero Config API Boilerplate with Laravel Sanctum Hydra is a zero-config API boilerplate with Laravel Sanctum and comes with excellent user and

PHP Framework for building scalable API's on top of Laravel.
PHP Framework for building scalable API's on top of Laravel.

Apiato Build scalable API's faster | With PHP 7.2.5 and Laravel 7.0 Apiato is a framework for building scalable and testable API-Centric Applications

PHP Framework for building scalable API's on top of Laravel.
PHP Framework for building scalable API's on top of Laravel.

Apiato Build scalable API's faster | With PHP 7.2.5 and Laravel 7.0 Apiato is a framework for building scalable and testable API-Centric Applications

Laravel CRUD Generator This Generator package provides various generators like CRUD, API, Controller, Model, Migration, View for your painless development of your applications.
Laravel CRUD Generator This Generator package provides various generators like CRUD, API, Controller, Model, Migration, View for your painless development of your applications.

Laravel CRUD Generator This Generator package provides various generators like CRUD, API, Controller, Model, Migration, View for your painless develop

Exemplary RealWorld backend API built with Laravel PHP framework.
Exemplary RealWorld backend API built with Laravel PHP framework.

Example of a PHP-based Laravel application containing real world examples (CRUD, auth, advanced patterns, etc) that adheres to the RealWorld API spec.

A CRUD app made with Laravel and VueJS 3 (API Composition)

About Laravel Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable and creative experie

Owner
Sebastian Sperandio
Full Stack Developer
Sebastian Sperandio
A Laravel 5.8 API Boilerplate to create a ready-to-use REST API in seconds.

Laravel API Boilerplate (JWT Edition) for Laravel 5.8 Laravel API Boilerplate is a "starter kit" you can use to build your first API in seconds. As yo

Francesco Malatesta 1.2k Dec 18, 2022
Creating a simple weather web application with Laravel rest API.

Weather Channel Creating a website for weather status, with Laravel restAPI. See the Website Weather.Channel-1.mov Features REST API Invoake Controlle

AmirH.Najafizadeh 3 Jul 31, 2022
Automatically Create professional ready to use Laravel REST API for MySQL Database With Postman Docs and JWT Authentication

Laravel Simple Rest API Generator An API Boilerplate to create a ready-to-use REST API in seconds with Laravel 8.x Install with Composer $ curl -s

null 5 Mar 12, 2022
A Laravel REST API backend with React/Redux, hot module reloading in development and route-level code splitting

React Laravel Boilerplate This is the boilerplate that I personally use for getting projects off the ground quickly using my favourite stack of techno

Carwyn Stephen 174 Jan 6, 2023
laravel adminlte with crud upload photo, ckeditor, validation & rest api

laravel crud with adminlte + restapi feature : Auth crud product (datatable, upload product using ajax, description with ckeditor) crud category displ

Dani 0 Jan 6, 2022
Rest API boilerplate for Lumen micro-framework.

REST API with Lumen 5.5 A RESTful API boilerplate for Lumen micro-framework. Features included: Users Resource OAuth2 Authentication using Laravel Pas

Hasan Hasibul 484 Sep 16, 2022
WP React Plugin Boilerplate - WordPress Setting via React and Rest API

WP React Plugin Boilerplate is a starter WordPress plugin to develop WordPress Plugin via React and Rest API. WP React Plugin Boilerplate WP React Plu

Santosh Kunwar 36 Dec 6, 2022
Basic Crud Generator (With Code Files, like GII (YII2)) Using Laravel, Livewire and Tailwind CSS

LiveCrud Live Crud Generator. This package generates Basic Crud with Livewire. Features Generate Complete Crud With Livewire Component and Blade Files

Ritesh Singh 28 Oct 12, 2022
Laravel + Livewire + Bootstrap 5 UI starter kit.

bastinald/ui Laravel + Livewire + Bootstrap 5 UI starter kit. Requirements Laravel 8 NPM Features Bootstrap 5 pre-configured Textarea autosize Floatin

null 83 Dec 26, 2022
EasyPanel is a beautiful, customizable and flexible admin panel based on Livewire for Laravel.

EasyPanel EasyPanel is a beautiful, customizable and flexible admin panel based on Livewire for Laravel. Features : Easy to install Multi Language RTL

Reza Amini 529 Dec 29, 2022