Skip to content

Repository files navigation

Simple API

A simple CodeIgniter 4 application to demonstrate how to create a RESTful API with Redis.

Requirements

  • PHP 8.2+
  • CodeIgniter 4
  • Redis

Installation

  1. Clone this repository.
git clone https://github.com/robinncode/simple-api.git
  1. If you don't have PHP 8.2+ installed. You can run the project with docker.
docker-compose up --build
  1. To stop the docker container.
docker-compose down
  1. 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
  1. To run migrations.
php spark migrate

with docker.

docker-compose exec app php spark migrate

About

A simple api with user-service authentication and custom route protection service using CI4

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages