CRUD SIMPLES E INTUITIVO FEITO EM PHP+REST

Overview

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 para requisição e acesso ao banco de dados, Script utilizado como "desafio" para uma entrevista de emprego

Já feito

  • Conexão com o banco de dados [23/12/2021];
  • Requisições ao banco de dados da tabela empregados como exemplo[23/12/2021];
  • Requisição GET para pegar todos os empregados[24/12/2021];
  • Requisição GET pegar um único empregado;
  • Requisição POST para adicionar um empregado;
  • Requisição PUT/PATCH para editar um empregado;
  • Requisição DELETE para deletar um empregado;

Pré-requisitos

Antes de começar, você vai precisar ter instalado em sua máquina as seguintes ferramentas:
Git, [XAMPP ou WAMPP ] Utilizei o XAMPP Segue o link: (https://www.apachefriends.org/pt_br/index.html).
Além disto é bom ter um editor para trabalhar com o código como [VSCode ou Sublime, Notepad++, PHPStorm...] Utilizei o PHPStorm mas o visual é gratuito e tem praticamente as mesmas funcionalidades ou não...(https://code.visualstudio.com/)

🎲 Rodando o Back End (servidor)

# Clone este repositório
$ git clone <https://github.com/aspiretony/crudrest>

Acesse a pasta do projeto, ir na pasta banco, copie o arquivo e subir para o mysql utilizando o phpmyadmin por exemplo.

Ainda na pasta do projeto vá para config e abra com o editor o arquivo "db.php", edite o arquivo como por exemplo abaixo:

OBS: DIGITE APENAS DENTRO DAS ASPAS...
define("servidor_sql", "localhost"); >> troque localhost pelo host do seu servidor MySQL;
define("usuario_sql", "root"); >> troque root pelo usuario do seu servidor MySQL;
define("senha_sql", ""); >> dentro das aspas digite a senha do seu servidor MySQL;
define("banco_de_dados", "bancocrud"); >> troque bancocrud pelo nome do banco de dados do seu servidor MySQL;

Pronto, só correr para o abraço

#Todas as requisições deve ser feita utilizando a pasta /api/ exemplo: https://localhost/api/ler.php || < Irar retornar todos os empregados.

Autor



Marcos Antonio ou Tonhão
🚀

Feito com ❤️ por SirTonhão 👋🏽 Entre em contato!

Linkedin Badge Hotmail Badge

You might also like...
Until 2018, Backpack v3 used this Base package to offer admin authentication and a blank admin panel using AdminLTE. Backpack v4 no longer uses this package, they're now built-in - use Backpack/CRUD instead.
Until 2018, Backpack v3 used this Base package to offer admin authentication and a blank admin panel using AdminLTE. Backpack v4 no longer uses this package, they're now built-in - use Backpack/CRUD instead.

Note: This package is only used by Backpack v3. Starting with Backpack v4, everything this package does is included in Backpack/CRUD - one package to

:elephant: A Laravel 6 SPA boilerplate with a users CRUD using Vue.js 2.6, GraphQL, Bootstrap 4, TypeScript, Sass, and Pug.
:elephant: A Laravel 6 SPA boilerplate with a users CRUD using Vue.js 2.6, GraphQL, Bootstrap 4, TypeScript, Sass, and Pug.

Laravel Vue Boilerplate A Laravel 6 Single Page Application boilerplate using Vue.js 2.6, GraphQL, Bootstrap 4, TypeScript, Sass and Pug with: A users

Laravel and Vue js CRUD
Laravel and Vue js CRUD

Laravel and Vue js PhoneBook app In this project I have done a simple CRUD using Laravel and Vue Js. Here I have used : Vue router Sweetalert2 Resourc

Basic Crud Generator (With Code Files, like GII (YII2)) Using Laravel, Livewire and Tailwind CSS
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

This package provides an artisan command to generate a basic crud with Restful API support

NHRROB Crud Generator Package This package provides an artisan command to generate a basic crud composer install command: composer require nhrrob/crud

Laravel Package for crud generation

Crud and API Generator Package Package which let's you automate tedious CRUD Operations. Requirements Laravel Version: = 8.0 PHP Version: = 7.3 Comp

A Laravel admin panel which is creating CRUD for your application automatically.

Adds a zero configuration Admin Panel to your Laravel Application Installation You can install the package via composer: composer require max-hutschen

Berikut Adalah cara untuk melakukan CRUD di FrameWork Laravel, Silahkan Disimak

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

How to Create Laravel 8 Vue JS CRUD Example

About Project How to Create Laravel 8 Vue JS CRUD, how to implement vue js crud example with Laravel 8. how to Create a crude API in Laravel 8, for ex

Owner
null
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

AppzCoder 1.3k Jan 2, 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
A simple CRUD built in PHP, Bootstrap and MySQL

✨ Notes-CRUD ✨ A simple CRUD built in PHP, Bootstrap and MySQL ?? Table of Contents Usage Contribute Screenshots ?? Usage Add the project to your envi

Bonnie Fave 7 Dec 7, 2022
mongo php crud

mongodb-crud for php you can use this package as your php project standalone or include necessary class and files into your project how to use. simply

Ali Qorbani 4 Oct 13, 2021
CRUD PHP developed by Fabio Augusto.

CRUD system with PHP 7.4, PDO and JWT authentication Important Open-source software system developed and maintained by: Fabio Augusto Full PHP develop

Fabio Augusto da Silva Amaral 2 May 29, 2022
Simple CRUD Product dengan PHP, MySQL & Bootstrap 5

Simple CRUD Product dengan PHP, MySQL & Bootstrap 5 Instalasi Pastikan sudah menginstall XAMPP atau sejenisnya Nyalakan service apache dan mysql buka

Gian Nurwana 1 Jan 3, 2022
A CRUD operation using php and Mysql database

This is a CRUD operation using php and Mysql database. In this when we add(CREATE) new user we need to submit add data in one form only in frontenf but in backend the data is storing in two different tables this is done using foreign key in Mysql.

Mohit Kumar 1 May 10, 2022
Very simple CRUD project, written in pure php. Designed as framework-agnostic as possible, and with basically no stack overflow if you can believe that

briefly simple CRUD pure php project for self improvement I try to make it purely in github - not only code, but any documentation (wiki), tasks (issu

Michał Jędrasiak 1 Jan 23, 2022
Basic Crud operations using smarty and php

Smarty template engine Smarty is a template engine for PHP, facilitating the separation of presentation (HTML/CSS) from application logic. Documentati

null 0 Aug 8, 2022
LaraAdmin is a Open source Laravel Admin Panel / CMS which can be used as Admin Backend, Data Management Tool or CRM boilerplate for Laravel with features like Advanced CRUD Generation, Module Manager, Backups and many more.

LaraAdmin 1.0 LaraAdmin is a Open source CRM for quick-start Admin based applications with features like Advanced CRUD Generation, Schema Manager and

Dwij IT Solutions 1.5k Dec 29, 2022