A simple CodeIgniter 4 application to demonstrate how to create a RESTful API with Redis.
- PHP 8.2+
- CodeIgniter 4
- Redis
- Clone this repository.
git clone https://github.com/robinncode/simple-api.git
- If you don't have PHP 8.2+ installed. You can run the project with docker.
docker-compose up --build
- To stop the docker container.
docker-compose down
- If you don't have vendor folder in your project. You can install dependencies with composer.
composer install
with docker.
docker-compose exec app composer install
- To run migrations.
php spark migrate
with docker.
docker-compose exec app php spark migrate