dngo-io/books

Dngo Book Project

Maintainers

Details

github.com/dngo-io/books

Source

Issues

Installs: 2

Dependents: 0

Suggesters: 0

Security: 0

Stars: 2

Watchers: 3

Forks: 1

Open Issues: 0

Language:CSS

Type:project


README

68747470733a2f2f737465656d6974696d616765732e636f6d2f44516d6239593675314a455765744a6933544d736b3335556a586757766757416f6d347039714743463942657835702f646e676f2d68712d6c6f676f2e706e67

DNGO Books Project

Use this to kick-start a Doctrine based Laravel app.

Included are the following:

  • Barryvdh Debugbar
  • Barryvdh IdeHelper
  • Beberlei Assert
  • Doctrine
  • Doctrine Behaviours
  • Doctrine Domain Events
  • Doctrine Entity Audit
  • Doctrine Entity Validation
  • Eloquent Enumerations
  • Environment Loader
  • HTML Builder
  • Homestead

Entities

The default namespace is "App".

The following entities and matching repositories are provided, together with YAML mapping files, pre-configured:

  • Permission
  • Role
  • User

Each repository has an interface that is pre-mapped to the interface in the repository config.

Domain Events

The User and Organization entities support Domain Events:

  • User Events
    • UserCreated
    • UserLoggedIn
    • AddressAddedToEntity
    • AddressRemovedFromEntity
    • AuthenticationCredentialsChanged
    • GrantedOrganizationToUser
    • GrantedPermissionToUser
    • GrantedRoleToUser
    • RevokedOrganizationFromUser
    • RevokedPermissionFromUser
    • RevokedRoleFromUser
  • Organization Events
    • OrganizationCreated
    • AddressAddedToEntity
    • AddressRemovedFromEntity

Getting Started

  • composer create-project dngo-io/books dngo-project
  • setup your database settings / configure the other options
  • ./artisan doctrine:schema:validate
  • ./artisan doctrine:schema:create
  • ./artisan db:seed
  • ./artisan serve
  • to use Vagrant, update the Homestead.yaml with the project location
  • vagrant up
  • then use the artisan commands as above

The standard Laravel welcome app + authentication have been setup and converted to Twig.

Additional Helper Scripts

  • cache_build.sh - creates caches for routes, container etc.
  • cache_clean.sh - clears all caches including Doctrine query caches
  • vagrant_db_reset.sh - drops and rebuilds the database (for development only)
  • vagrant_refresh.sh - fully refreshes all applications files including composer update and npm install