Skip to content

gbrabyn/laravel-crud

Repository files navigation

Laravel Full Stack CRUD Coding Exercise

A Laravel application to manage organisation's users.

Application Behaviour

  1. EMPLOYEE users see the Home page after logging in.
  2. EMPLOYEE users can see a Users data grid but have no editing rights.
  3. ADMIN users see a Users data grid after logging in, including ADMIN users.
  4. ADMIN users can create, edit, and delete users.
  5. ADMIN users can create ADMIN users.
  6. ADMIN users cannot update or delete other ADMIN users.
  7. An ADMIN user cannot delete themself.
  8. An Organisations CRUD for ADMIN users.
  9. Users search form
  10. Seeders to create organisations and users, including admin users.
  11. Tests for the users CRUD.

Stack

  1. Database: MySQL
  2. Framework: Laravel
  3. Docker

Setup the project

This project uses Docker containerisation so you can quickly run it in your local development environment.

To set up the project follow these steps:

  1. Set up the .env file:
cp .env.example .env
  1. Start up the services
docker-compose up -d
  1. Install the dependencies
docker-compose exec app composer install

npm install
  1. Build the frontend resources
npm run dev
  1. Create a key
docker-compose exec app php artisan key:generate
  1. Run migrations
docker-compose exec app php artisan migrate --seed
  1. View website

View the website at http://localhost:8000/. Log-in as Admin using: "admin@example.com" and "password".

About

Laravel CRUD exercise

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages