Git Product home page Git Product logo

phonebook-laravel5-vue2's Introduction

Phonebook PWA - Laravel 5 Repository Pattern, Vue.js

Simple phonebook app that demonstrates usage of repository pattern in Laravel 5 and Vue.js 2.

Flow

  • Register and login with email
  • Search Contacts
  • Filter Contacts ( all / favorite )
  • Add Contact
    • First name
    • Last name
    • Avatar
    • Email
    • Favorite [boolean]
    • Phones
      • Number (e.g. 023 3923 3939)
      • Label (e.g. Work)

Stack and Packages

API

Frontend

Installation

Docker submodule: Init

git submodule update --init --recursive

Docker Environment: Start

cd ./docker/
docker-compose up -d nginx workspace mysql
cd ../

Initialize environment

npm install
cd ./docker/
docker-compose exec workspace bash
composer install
composer dumpautoload
php artisan key:generate
php artisan migrate:refresh --seed
php artisan passport:keys --force
php artisan storage:link

Seeders

Run php artisan db:seed

  • PassportSeeder
    • Creates default Passport client for testing purposes
      • Client id: 1,
      • Client secret: config('auth.POSTMAN_CLIENT_SECRET', 'PostmanNDC6Of0XbmHHTcZIi34PFuwbyTQegfyd0')
  • UsersSeeder
    • Creates default user
      • First name: config('users.test.USER_FIRST_NAME', 'John'),
      • Last name: config('users.test.USER_LAST_NAME', 'Smith'),
      • Email: config('users.test.USER_EMAIL', '[email protected]'),
      • Password: config('users.test.USER_PASSWORD', 'secret')

Progressive Web Application

cd public/
sw-precache --maximum-file-size-to-cache-in-bytes 8097152 --config sw-config.js

Tests

Run ./vendor/bin/phpunit

Envoy

Run Tests

envoy run test --server=local

Deploy

envoy run deploy --server=['local', 'staging'] [--install] [--reset]

.env

[email protected]

[email protected]

Todo

  • Frontend
    • Refactor
    • Vuex

License

MIT

phonebook-laravel5-vue2's People

Contributors

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