Giter VIP home page Giter VIP logo

laravel-angular-pagination's Introduction

A Laravel and Angular Pagination Example

This project is meant to demonstrate how pagination can be implemented with Laravel and Angular.

Notes

  • The project demo is currently up and running at http://demo1.robotmonster.ca/.
  • The Angular portion of the project can be found in the angular-client/ folder.
  • The Angular component demonstrating basic native Laravel pagination with Angular UI is angular-client/src/app/basic-pagination (link) .
  • The Angular component demonstrating searchable native Laravel pagination with Angular UI is angular-client/src/app/search-pagination (link) .

Local Project Setup

To get the project installed and running locally:

  1. Clone the repository.
  2. Install the laravel project with composer composer install.
  3. Create your .env file with your db connection information. Have the db and db user created:
APP_NAME=Laravel
APP_ENV=local
APP_KEY=base64:W5JIu+haj30/3+XIhXXEva9GISBjcA+aZ6tIKCiGRmA=
APP_DEBUG=true
APP_LOG_LEVEL=debug
APP_URL=http://localhost

DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=laravel_pagination_sample
DB_USERNAME=laravelpaginationsample
DB_PASSWORD=laravelpaginationsample

BROADCAST_DRIVER=log
CACHE_DRIVER=array
SESSION_DRIVER=file
QUEUE_DRIVER=sync

REDIS_HOST=127.0.0.1
REDIS_PASSWORD=null
REDIS_PORT=6379

MAIL_DRIVER=smtp
MAIL_HOST=mailtrap.io
MAIL_PORT=2525
MAIL_USERNAME=null
MAIL_PASSWORD=null
MAIL_ENCRYPTION=null

PUSHER_APP_ID=
PUSHER_KEY=
PUSHER_SECRET=
  1. Run php artisan migrate:refresh --seed to set up your database tables.
  2. Install Angular's NPM moduls: cd angular-client && npm install
  3. Build the Angular project so Laravel can serve it: ng build --watch
  4. In a new process start the Laravel server from the project root: php artisan serve
  5. View the project at localhost:8000/angular

laravel-angular-pagination's People

Watchers

 avatar  avatar

Forkers

karthik1758

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.