Giter VIP home page Giter VIP logo

gobeam / laravel-demo Goto Github PK

View Code? Open in Web Editor NEW
10.0 3.0 0.0 1.43 MB

This is demo repository for new Laravel developer which includes demo of Laravel CMS with frontend with Vuejs. This repository contains demo implementation of Laravel policies, real time notification with laravel-echo-json with some example of feature tests.

License: MIT License

PHP 61.73% Vue 1.77% HTML 36.50%
laravel laravel7 laravel-demo laravel-backend laravel-testing vuejs laravel-echo-server realtime-notification demo backend cms

laravel-demo's Introduction

Laravel Demo

This is simple demo repository for laravel web application made with Laravel Framework 7.0 for new Laravel developer which includes demo of backend CMS with frontend with Vuejs. This repository contains demo implementation of Laravel policies, eloquent, Mailing, real time notification with laravel-echo-json with some example of feature tests.

Setup

First of all copy .env.example to .env

cp .env.example .env

and change database, mail & redis configuration according to your setup

now add require packages with command (hope composer is already installed in your system)

composer install

Run migration with

php artisan migrate

Run seeder with

php artisan db:seed

now install to install package.json dependencies

npm install

Thats all for project setup

Now to bundle all dependencies with web pack into a single file

npm run dev

Since this project also includes demo for realtime notification with laravel-echo-server make sure redis is installed and is running in background. Now install laravel-echo-server through npm globally.

npm i -g laravel-echo-server

after that in file named laravel-echo-server.json which is in root of project change authHost key's value and put your laravel application running host name or if you are running php artisan serve command http://127.0.0.1:8000. Now, to run laravel-echo-server

laravel-echo-server start

your laravel echo server will run now.

Testing

To run test first of all set test environment in .env

DB_TEST_DRIVER=mysql
DB_TEST_Database=test_db_name

and run

php artisan test

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

Released under the MIT License - see LICENSE.txt for details.

laravel-demo's People

Contributors

dependabot[bot] avatar gobeam avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

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