8000 GitHub - bkkrishna/jogging-time: Sample Single Page Application using Laravel 5 & Vue2 + Vuex + Vue-Router
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

bkkrishna/jogging-time

 
 

Repository files navigation

Build Status

Laravel 5.5 & Vue.js 2.4 + Vuex Sample Project

Laravel & Vue Sample Project is a tutorial Single Page Application (SPA) for Laravel 5.5 and Vue.js 2.4 Frontend

Demo

Use login: user@gmail.com and password: 123456

Installation

git clone https://github.com/vedmant/jogging-time.git # To clone repo
cd jogging-time
composer install # Install php dependencies

# Prepare enviroment variables
cp .env.example .env # Copy configuration file
php artisan key:generate # Generate unique key

# Prepare database
touch database/database.sqlite # Create sqlite database
php artisan migrate --seed # Create DB Schema and seed sample data
php artisan passport:install # Install Passport

# Compile assets
yarn # Install Javascript dependencies
yarn prod # Compile assets

# Start server
php artisan serve # Start server

Open http://localhost:8000 to view site

If you don't have installed yarn, run npm install -g yarn

Main features

  • Fully separate Backend and Frontend
  • Authentication based on Laravel Passport
  • List pages with filters and CRUD editing
  • Backend validation
  • Admin panel
  • Simple widgets
  • Simple reports
  • Full Phpunit test coverage
  • Sample E2E tests using Nightwatch and Cypress

Includes

Other Features

  • Front page
  • Authentication (registration, login, logout, throttle)
  • Users roles: administrator (all access), manager (manage records)
  • User dashborad with widgets and charts
  • Entries list with filter by date (list, show, edit, delete, create)
  • Report page with chart
  • User profile page
  • Admin dashboard with widgets
  • Users admin (list, show, edit, delete, create)
  • Entries admin (list, show, edit, delete, create)
  • Global loader overlay for all requests

Development

To run convenient development server with hot reloading:

php artisan serve # Will serve backend on localhost:8000
yarn hot # Will serve frontend on loaclhost:8080 and proxy api requests to localhost:8000

And open http://localhost:8080

Alternatively you can use watch method:

yarn watch

And open http://localhost:8000

To compile assets for production run:

yarn prod

# Or to display bundle analyzer run:
yarn production -- --env.analyzer true

Tests

To run all Phpunit tests:

./vendor/bin/phpunit 

To run Cypress E2E tests:

php artisan serve
yarn test
# Or you can open GUI with
yarn test-gui

To run Nightwatch E2E tests:

php artisan serve
yarn test-nw

Demo Credentials

For testing application the database is seeded with sample users:

TODO

  • Dissalow to revoke admin role for last admin user
  • Replace Vue Resource with Axios
  • Add more E2E tests

License

And of course:

MIT

About

Sample Single Page Application using Laravel 5 & Vue2 + Vuex + Vue-Router

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 85.2%
  • Vue 8.2%
  • HTML 4.0%
  • CSS 2.6%
0