Giter Club home page Giter Club logo

multti's Introduction

Desafio Multti

Descrição do Projeto

  • Versão Laravel 8.74.0
  • Versão PHP 7.4.9
  • Versão MySQL 5.7

Executando o projeto

Clone o projeto:

git clone https://github.com/lipe7/multti

O arquivo .env.example possuem dados genéricos para configuração da aplicação. Faça uma copia do .env.example e renomeie para .env.

Instale as dependências:

composer install

Gere o APP_KEY executando:

php artisan key:generate

Crie um banco e configure no .env:

DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE='nome_do_banco'
DB_USERNAME=root
DB_PASSWORD=

Rode as migrations :

php artisan migrate

Rode o comando :

php artisan optimize

Rode o servidor :

php artisan serve

Autor

Filipi Campos

[email protected]

EndPoints

Arquivo insomnia InsomniaCrud na raiz do projeto.

version:

Index

GET:
http://127.0.0.1:8000/api

ListAll:

GET:
http://127.0.0.1:8000/api/users

Create

POST:
http://127.0.0.1:8000/api/users
{
	"name":"Felipe",
	"email":"[email protected]",
	"password":"123",
	"phone":"77900000000"
}

Read

GET:
http://127.0.0.1:8000/api/users/1

Update:

PUT:
http://127.0.0.1:8000/api/users/1
{
    "name":"Felipe",
    "email":"[email protected]",
    "password":"123",
    "phone":"77900001111"
}

Delete:

DELETE:
http://127.0.0.1:8000/api/users/1


multti's People

Contributors

lipe7 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.