Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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 .env

Open 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}