Setting Up CodeIgniter 4 Project
Follow these steps to set up and run a CodeIgniter 4 project after cloning the repository:
Cloning the Repository: Clone the Git repository containing the CodeIgniter 4 project to your local machine:
git clone [<repository-url>](https://github.com/Mainfiles4/Shiling-Market.git)Installing Composer Dependencies: Navigate to the project directory and install Composer dependencies:
cd Shiling-Market composer installEnvironment Configuration: Create a
.envfile in the project root based on the.env.examplefile, and update the values to match your local environment:cp env.example .envPermissions: Ensure that necessary directories such as
/writablehave appropriate permissions to allow the application to write to them.Database Setup: Set up the database and update the
.envfile with the corresponding database credentials.Running Migrations (Optional): If the project includes database migrations, you can run them to create database tables:
php spark migrateServing the Application: Serve the CodeIgniter 4 application using the built-in PHP development server or any other web server environment:
php spark serveAlternatively, configure the project to run on your local web server environment.
Once these steps are completed, you should be able to access and interact with the CodeIgniter 4 application locally in your web browser.
Built With
- codeigniter
- php
- restapi
Log in or sign up for Devpost to join the conversation.