Product Dashboard is a web application built using CodeIgniter. This application allows users to register, log in, edit their profiles, and interact with products by creating and replying to reviews. The first user to register will be designated as the admin, who has additional privileges such as creating, updating, and deleting products.
- User Registration: Users can create an account.
- User Login: Users can log into their accounts.
- Edit User Profile: Users can update their profile information.
- Admin Privileges: The first registered user is the admin and can manage products.
- Product Management: - Admin can create new products. - Admin can update existing products. - Admin can delete products.
- Reviews: - Users can create reviews for products. - Users can reply to existing reviews. - Users can view product information and reviews.
- Form Validations: All forms include robust validation to ensure data integrity.
- MySQL Database: User information is saved in a MySQL database.
To install and run the Product Dashboard, follow these steps:
Clone the repository:
git clone https://github.com/DreaUltimate/Product-dashboard.git
Navigate to the project directory:
cd product-dashboard
Install dependencies:
Ensure you have Composer installed. If not, download it from https://getcomposer.org/.
Run the following command to install CodeIgniter dependencies:
composer install
Configure the application:
Copy the env file to .env and configure your database settings.
Set your database configuration in .env:
database.default.hostname = localhost database.default.database = your_database_name database.default.username = your_database_username database.default.password = your_database_password database.default.DBDriver = MySQLi
Update the base URL and other configuration settings as needed in app/Config/App.php.
Run the database migrations:
php spark migrate
Run the application:
php spark serve
The application will be available at http://localhost:8080.
Once the application is up and running, you can start using it as follows:
- Register a new user: - Visit the registration page and create a new account. The first user to register will automatically be given admin privileges.
- Log in: - Use your credentials to log in to the application.
- Edit Profile: - Navigate to your profile page to edit your user information.
- Manage Products (Admin only): - As an admin, you can create, update, and delete products from the product management section.
- Create and Reply to Reviews: - View product details and submit reviews. - Reply to existing reviews to engage with other users.
All forms in the application are equipped with comprehensive validation to ensure data integrity and user-friendly error messages.
Contributions are welcome! Please fork the repository and submit a pull request for review.
This project is licensed under the MIT License. See the LICENSE file for details.