Laragigs is a simple job listing application built with Laravel. This project demonstrates a CRUD operation for job listings and user authentication. It also includes a custom delete confirmation dialog styled with Tailwind CSS.
- Create, Read, Update, and Delete (CRUD) operations for job listings.
- User authentication with registration and login.
- Custom delete confirmation dialog using Tailwind CSS and Alpine.js.
- Pagination for job listings.
- Simple, intuitive UI built with Blade components.
- PHP >= 8.3.3
- Composer
- Node.js & npm (for frontend dependencies)
- MySQL
This app uses MySQL. To use something different, open up config/Database.php
and change the default driver.
To use MySQL, make sure you install it, setup a database and then add your db credentials(database, username and password) to the .env.example file and rename it to .env
-
Clone the repository:
git clone https://github.com/stekatag/laragigs.git cd laragigs
-
Install PHP dependencies:
composer install
-
Install JavaScript dependencies:
npm install
-
Create a
.env
file: Copy the .env.example file to .env and update the database and other necessary configurations.cp .env.example .env
-
Migrations To create all the nessesary tables and columns, run the following command:
php artisan migrate
-
Seeding the database To add the dummy listings with a single user, run the following:
php artisan db:seed
-
File Uploading When uploading listing files, they go to "storage/app/public". Create a symlink with the following command to make them publicly accessible:
php artisan storage:link
-
Serve the application:
php artisan serve
After serving the application, you can access it in your browser at http://localhost:8000. Here you can:
- View all job listings.
- Create a new listing (requires authentication).
- Edit or delete existing listings (requires authentication).