Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/avijitca/codeigniter-4-crud-product-inventory
A CodeIgniter project with basic product inventory functionality. In this project I have implemented some core functionalities of web application.
https://github.com/avijitca/codeigniter-4-crud-product-inventory
bulk-upload codeigniter4 excel-export pagination pdf-generation restful-api
Last synced: 13 days ago
JSON representation
A CodeIgniter project with basic product inventory functionality. In this project I have implemented some core functionalities of web application.
- Host: GitHub
- URL: https://github.com/avijitca/codeigniter-4-crud-product-inventory
- Owner: avijitca
- License: mit
- Created: 2024-12-01T18:55:48.000Z (about 1 month ago)
- Default Branch: master
- Last Pushed: 2024-12-23T00:13:55.000Z (13 days ago)
- Last Synced: 2024-12-23T00:28:37.257Z (13 days ago)
- Topics: bulk-upload, codeigniter4, excel-export, pagination, pdf-generation, restful-api
- Language: PHP
- Homepage:
- Size: 46.5 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Product Inventory Application with CodeIgniter 4
This is a basic CRUD (Create, Read, Update, Delete) application built using **PHP 8.2** and **CodeIgniter 4**. The project demonstrates the implementation of CRUD operations with server-side validation, Bootstrap for UI styling, and a simple relational database.
---
## Features
- Product listing.
- Create new products with validation.
- Edit and update existing products.
- Delete products with confirmation.
- CodeIgniter 4's model, controller, and routing structure.---
## Requirements
- PHP 8.2 or later
- Composer
- MySQL or MariaDB
- Apache/Nginx server with `mod_rewrite` enabled
- CodeIgniter 4 framework---
## Installation
### Step 1: Clone the Repository
Clone this repository to your local machine:
```bash
git clone https://github.com/avijitca/CodeIgniter-4-CRUD-Product-Inventory.git
cd### Step 2: Install Dependencies
Install the project dependencies using Composer:
composer install### Step 3: Configure Environment
Copy the .env.example file to .env:
cp env.example .envOpen the .env file and update the following settings:
app.baseURL = 'http://localhost/'
database.default.hostname = localhost
database.default.database =
database.default.username =
database.default.password =
database.default.DBDriver = MySQLi### Step 4: Create the Database
1. Create a database in MySQL or MariaDB.
2. Import the SQL schema provided in the database.sql file:mysql -u -p < database.sql
### Step 5: Serve the Application
Start the built-in development server using the following command:php spark serve
Visit the application in your browser:http://localhost:8080
---
## Usage
Accessing the Application
1. Open the URL in your browser: http://localhost:8080.
2. Use the navigation options to add, edit, or delete products.## Default Routes
Product Listing: /products
1. Create Product: /product_inventory/create-product
2. Edit Product: /product_inventory/update-product/{id}
3. Delete Product: /product_inventory/delete-product/{id}