Giter Site home page Giter Site logo

laravel-react-demo's Introduction

Laravel + React Demo

This application is a simple demo for the react.js (javascript) as front end and Laravel framework (PHP) as backend. For the current setup, database used is mysqlite.

App Specifications

Laravel Framework 8.83.27 PHP 7.3 React.js 17.0.2

Requirements

PHP 7.3 and above Composer 2.0 and above NPM 8

How to setup / install

  1. Clone this repo. git clone https://github.com/Syirasky/laravel-react-demo.git
  2. Enter the cloned repo directory cd laravel-react-demo
  3. Run composer install to install all the required dependency for Laravel
  4. Run npm install to install all the required dependency for React.js
  5. Configure the .env file to use sqlite (see below for the example .env). Just set the database config as follows,
DB_CONNECTION=sqlite
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE='../database/database.sqlite'
DB_USERNAME=
DB_PASSWORD=
  1. Run php artisan migrate
  2. Run php artisan serve
  3. If you have error regarding the Laravel key, just click generate and then re-run php artisan serve
  4. If you have error regarding the sqlite database not found, edit the .env file and change the database to ../database/database.sqlite

Screenshots

Front page, list of cards.

Assigning cards to player page. image

Assigned cards details image

laravel-react-demo's People

Contributors

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