GithubHelp home page GithubHelp logo

laravel-react-products's Introduction

Laravel React Products

Build Status StyleCI Scrutinizer Code Quality License: MIT

Table of contents

About

Simple products Create/Read example using Laravel 5.7 and ReactJS UI.

Features

Laravel React Products Features
Built on Laravel 5.7
Built on Bootstrap 4
Front End Built on ReactJS

Installation Instructions

  1. Run git clone https://github.com/jeremykenedy/laravel-react-products.git laravel-react-products
  2. From the projects root run cp .env.example .env
  3. Run composer update from the projects root folder
  4. From the projects root folder run php artisan key:generate
  5. From the projects root folder run yarn install
  6. From the projects root folder run yarn run dev or yarn run production
  • You can watch assets with yarn run watch
  1. From the projects root folder run php artisan serve

Routes

+--------+----------+------------------------+------+------------------------------------------------+------------+
| Domain | Method   | URI                    | Name | Action                                         | Middleware |
+--------+----------+------------------------+------+------------------------------------------------+------------+
|        | GET|HEAD | /                      |      | Closure                                        | web        |
|        | GET|HEAD | api/products           |      | App\Http\Controllers\ProductsController@index  | api        |
|        | POST     | api/products           |      | App\Http\Controllers\ProductsController@store  | api        |
|        | GET|HEAD | api/products/{product} |      | App\Http\Controllers\ProductsController@show   | api        |
|        | PUT      | api/products/{product} |      | App\Http\Controllers\ProductsController@update | api        |
|        | DELETE   | api/products/{product} |      | App\Http\Controllers\ProductsController@delete | api        |
+--------+----------+------------------------+------+------------------------------------------------+------------+

File Tree

Laravel React Products
├── .env.example
├── .env.travis
├── .gitattributes
├── .gitignore
├── .travis.yml
├── LICENSE
├── app
│   ├── Console
│   │   └── Kernel.php
│   ├── Exceptions
│   │   └── Handler.php
│   ├── Http
│   │   ├── Controllers
│   │   │   ├── Auth
│   │   │   │   ├── ForgotPasswordController.php
│   │   │   │   ├── LoginController.php
│   │   │   │   ├── RegisterController.php
│   │   │   │   ├── ResetPasswordController.php
│   │   │   │   └── VerificationController.php
│   │   │   ├── Controller.php
│   │   │   └── ProductsController.php
│   │   ├── Kernel.php
│   │   └── Middleware
│   │       ├── Authenticate.php
│   │       ├── CheckForMaintenanceMode.php
│   │       ├── EncryptCookies.php
│   │       ├── RedirectIfAuthenticated.php
│   │       ├── TrimStrings.php
│   │       ├── TrustProxies.php
│   │       └── VerifyCsrfToken.php
│   ├── Models
│   │   └── Product.php
│   ├── Providers
│   │   ├── AppServiceProvider.php
│   │   ├── AuthServiceProvider.php
│   │   ├── BroadcastServiceProvider.php
│   │   ├── EventServiceProvider.php
│   │   └── RouteServiceProvider.php
│   └── User.php
├── artisan
├── bootstrap
│   ├── app.php
│   └── cache
│       ├── .gitignore
│       ├── packages.php
│       └── services.php
├── composer.json
├── composer.lock
├── config
│   ├── app.php
│   ├── auth.php
│   ├── broadcasting.php
│   ├── cache.php
│   ├── database.php
│   ├── filesystems.php
│   ├── hashing.php
│   ├── logging.php
│   ├── mail.php
│   ├── queue.php
│   ├── services.php
│   ├── session.php
│   └── view.php
├── database
│   ├── .gitignore
│   ├── factories
│   │   └── UserFactory.php
│   ├── migrations
│   │   ├── 2014_10_12_000000_create_users_table.php
│   │   ├── 2014_10_12_100000_create_password_resets_table.php
│   │   └── 2018_10_01_004429_create_products_table.php
│   └── seeds
│       ├── DatabaseSeeder.php
│       └── ProductsTableSeeder.php
├── package.json
├── phpunit.xml
├── public
│   ├── .htaccess
│   ├── css
│   │   └── app.css
│   ├── favicon.ico
│   ├── index.php
│   ├── js
│   │   └── app.js
│   ├── mix-manifest.json
│   ├── robots.txt
│   └── svg
│       ├── 403.svg
│       ├── 404.svg
│       ├── 500.svg
│       └── 503.svg
├── readme.md
├── resources
│   ├── js
│   │   ├── app.js
│   │   ├── bootstrap.js
│   │   └── components
│   │       ├── AddProduct.js
│   │       ├── Example.js
│   │       ├── Main.js
│   │       └── Product.js
│   ├── lang
│   │   └── en
│   │       ├── auth.php
│   │       ├── pagination.php
│   │       ├── passwords.php
│   │       └── validation.php
│   ├── sass
│   │   ├── _variables.scss
│   │   └── app.scss
│   └── views
│       ├── app.blade.php
│       └── welcome.blade.php
├── routes
│   ├── api.php
│   ├── channels.php
│   ├── console.php
│   └── web.php
├── server.php
├── webpack.mix.js
└── yarn.lock

  • Tree command can be installed using brew: brew install tree
  • File tree generated using command tree -a -I '.git|node_modules|vendor|storage|tests'

License

Laravel React Products is licensed under the MIT license. Enjoy!

laravel-react-products's People

Contributors

jeremykenedy avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Forkers

crasader roshimon

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.