Welcome to the Simple Livewire Apps for Beginners repository! This collection of applications is designed to help beginners learn and understand the basics of Livewire, a full-stack framework for Laravel that makes building dynamic interfaces simple and enjoyable.
Livewire simplifies the process of building modern, reactive web applications using Laravel. Each app in this repository demonstrates a fundamental concept or feature of Livewire, providing practical examples to help beginners grasp the framework's power and flexibility.
To get started with these applications, follow these steps:
-
Clone the repository:
git clone https://github.com/ezeanyimhenry/livewire-apps.git cd livewire-apps
-
Install dependencies:
composer install npm install && npm run dev
-
Set up the environment: Copy the
.env.example
file to.env
and configure your database settings.cp .env.example .env php artisan key:generate
-
Run database migrations with seed:
php artisan migrate --seed
-
Serve the application:
php artisan serve
A simple counter app that allows you to increment and decrement a counter.
- Increment counter
- Decrement counter
A simple todo list application that allows you to add, update, and delete tasks.
- Add new tasks
- Mark tasks as completed
- Delete tasks
A basic calculator that performs addition, subtraction, multiplication, and division.
- Basic arithmetic operations
A basic select dropdown for continents, countries, and states.
- Select a continent and see countries in that continent
- Select a country and see states in that country
- Seeding the database with continent, countries, and states.
Navigate to the specific application you want to explore:
- Counter App: http://localhost:8000/counter
- Todo List: http://localhost:8000/todo
- Calculator: http://localhost:8000/calculator
- Cascading Dropdown: http://localhost:8000/cascading-dropdown
Each application directory contains a README.md
file with more detailed instructions on how to use and understand the specific app.
Contributions are welcome! If you have suggestions for improvements or want to add new features, please open an issue or submit a pull request.
- Fork the repository.
- Create a new branch (
git checkout -b feature/your-feature-name
). - Make your changes.
- Commit your changes (
git commit -m 'Add some feature'
). - Push to the branch (
git push origin feature/your-feature-name
). - Open a pull request.
This project is licensed under the MIT License. See the LICENSE file for more information.