Giter Site home page Giter Site logo

marketplace_test_laravel's Introduction

Marketplace test laravel

Why am create this application

The application is the way to test and improve my ability in API REST, trainning my programming skills, to practice the TDD think and another things about web development.

Purpose of this application

The application is a api json that will serve like a simple backend of a SPA marketplace. It will send the products and save the users orders and another functions.

To start this application

compose update
php artisan serve

Be attention, you will need run the compose update command inside your project folder to load the dependencies of laravel.

To test

php artisan test

The database

Don't forget that you will need set a database configuration for it

The Api routes

the routes are mapped to this uris.

POST /api/login

"Authentication Header" : "Bearer " + token

{
    "email": "[email protected]",
    "password": "123"
}
POST /api/register

{
    "name": "user",
    "email": "[email protected]",
    "password": "123"
}
GET /api/logout
GET /api/products
POST /api/product

{
    "description": "Product",
    "price" : 0.00,
    "category_id": 1
}
PUT /api/product/{id}

{
    "description": "Change product",
    "price" : 1.00,
    "category_id": 1
}
DELETE /api/product/{id}
GET /api/categories
POST /api/category/{id}

{
    "description": "Informatics"
}
PUT /api/category/{id}
{
    "description": "Change category"
}
DELETE /api/category/{id}

The Laravel framework is open-sourced software licensed under the MIT license.

marketplace_test_laravel's People

Contributors

lucasmezuraro 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.