Giter Club home page Giter Club logo

categories-crud's Introduction

Technical task

Technology stack

For this project I stuck with what I knew would be awesome to look at and also demonstrate some of Laravel's latest trends.

The project has been developed with the TALL stack (Tailwind, Alpine.js, Laravel and Livewire).

Installation & setup


NOTE

This project depends on the host running a MacOS, Linux or WSL2 environment with PHP.


Clone the repository and change into the project directory

git clone [email protected]:nathandaly/categories-crud.git
cd categories-crud

Copy the example .env

cp .env.example .env

Installing dependencies

composer install

Followed by

npm install
npm run dev

NOTE

If your host system is not running PHP 8 then you will need to add --ignore-platform-reqs. to the composer command.


Once the PHP and node dependencies have been resolved you can run the Sail containers.

export APP_PORT=8082 && ./vendor/bin/sail up -d

This command will normally take few minutes and will download and build the required containers.

Database migration and seeding

The project contains migration for the database structure as well as a DotFive user and example data which you can seed.

./vendor/bin/sail artisan migrate
./vendor/bin/sail artisan db:seed

๐ŸŽ‰ Up and running ๐ŸŽ‰

That should be all that is necessary for the application to be usable. Just head over to localhost::8082 and login with the following credentials:

email: [email protected]
password: password

Todos:

If I had more time:

  • Testing for livewire components
  • Implement real-time cross browser changes with Laravel events and Echo
  • Implement multiple categories to list edit form
  • Implement add edit and category forms
  • Add ordering logic for items (position field has already been added to the migration)
  • Example CRUD controller logic (with Livewire you can almost go down the non-controller route)
  • Created a generic form component that both add and edit could share with common methods such as refresh() and save()

categories-crud's People

Contributors

nathandaly avatar

Stargazers

 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.