TryToDo WebApp(fullStack)
Application Overview
The application is a user management system that includes features for user registration,
login, profile management, and admin functionalities for managing users and their messages.
It is built using the CodeIgniter framework, following the MVC (Model-View-Controller) architecture
to separate concerns, making the codebase modular, maintainable, and scalable.
-Stack
codeigniter v.3
PHP v7.4.33
phpMyAdmin v5.2.0
Composer v2.7.7
MariaDB v10.4.27
Apache/2.4.54
Dbclient libmysql - mysqlnd v7.4.33
tailwindcss v2.2.19
jQuery v3.6.0
- XAMPP: Ensure XAMPP is installed on your machine.
- Composer: Ensure Composer is installed on your machine.
- MailHog: For email testing (optional)
-
Clone the Repository:
git clone https://github.com/ratamahataV1/advisable_TryToDo.git
-
Move the Application to htdocs directory of your XAMPP installation:
sudo mv advisable_TryToDo-main /opt/lampp/htdocs/tryToDo
-
Navigate to the Application Directory:
cd /opt/lampp/htdocs/tryToDo
-
Install Dependencies:
composer install
-
Start XAMPP:
sudo /opt/lampp/lampp start
-
Set Up the Database:
- Open phpMyAdmin from XAMPP (usually available at
http://localhost/phpmyadmin
). - Create a new database (e.g.,
tryToDo
). - Import the database backup file (
tryToDo_quickEX.sql
) into the newly created database.
- Open phpMyAdmin from XAMPP (usually available at
-
Configure the Application:
-
Update the database configuration in
application/config/database.php
:$db['default'] = array( 'dsn' => '', 'hostname' => 'localhost', 'username' => 'root', // Default XAMPP user 'password' => '', // Default XAMPP password is empty 'database' => 'tryToDo', 'dbdriver' => 'mysqli', // other settings... );
-
Update the base URL in
application/config/config.php
:$config['base_url'] = 'http://localhost/tryToDo/';
-
-
Run the Application:
- Open a browser and navigate to:
http://localhost/tryToDo/
- Open a browser and navigate to:
- Ensure XAMPP and Composer are correctly installed and configured.
- Check the database credentials (see the docs) and ensure the database is correctly imported.
- If there are permission issues on Linux, ensure the application directory has the correct permissions:
sudo chown -R $USER:www-data /opt/lampp/htdocs/tryToDo sudo chmod -R 775 /opt/lampp/htdocs/tryToDo