Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/meezaand/laravel-product-management
https://github.com/meezaand/laravel-product-management
laravel php reactjs sqlite tailwindcss
Last synced: 12 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/meezaand/laravel-product-management
- Owner: MeezaanD
- Created: 2024-11-07T18:02:39.000Z (12 days ago)
- Default Branch: master
- Last Pushed: 2024-11-07T18:20:15.000Z (12 days ago)
- Last Synced: 2024-11-07T19:28:05.600Z (12 days ago)
- Topics: laravel, php, reactjs, sqlite, tailwindcss
- Language: PHP
- Homepage:
- Size: 94.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Product Management System
A Laravel application for managing products, including features for creating, editing, and deleting products, as well as managing their details such as name, price, description, and stock quantity.
---
## Prerequisites
Before running the application, make sure you have the following installed:
- **PHP** (preferably 8.x or above)
- **Composer** (PHP package manager)
- **Laravel** (for developing and running the Laravel application)
- **SQLite** (for local database setup)
- **Node.js and npm** (for managing frontend dependencies)---
## Steps to Clone and Run the Application
```bash
1. Clone the Repository
Start by cloning the repository to your local machine using Git.
git clone https://github.com/MeezaanD/laravel-product-management
After cloning, navigate to the project directory:cd laravel-product-management
2. Install Dependencies
Install the PHP dependencies using Composer:composer install
This will install all required PHP libraries for the backend.Next, install the frontend dependencies with npm:
npm install
This will install the necessary packages for the frontend (CSS, JavaScript, etc.).3. Set Up the Environment
Copy the .env.example file to create your own environment configuration file:cp .env.example .env
Open the .env file and set up the SQLite database by ensuring the following line is present:
DB_CONNECTION=sqlite
Create the SQLite database file:touch database/database.sqlite
4. Generate Application Key
Generate the Laravel application key for secure encryption:php artisan key:generate
This will automatically set the APP_KEY in the .env file.5. Run Migrations
Run the migrations to set up the database schema:php artisan migrate
This will create the necessary tables for managing products in the SQLite database.Running the Application
Now that everything is set up, you can run the Laravel development server:php artisan serve
This will start the application at http://localhost:8000. AND BEGIN FROM HEREFrontend Development
To compile and watch frontend assets, use the following command:npm run dev
This will start the development environment, which will automatically refresh your browser whenever changes are made.If you want to prepare the assets for production, run:
npm run build
This will optimize and minify the frontend assets for a production environment.