https://github.com/robinncode/simple-api
A simple api with user-service authentication and custom route protection service using CI4
https://github.com/robinncode/simple-api
Last synced: 10 months ago
JSON representation
A simple api with user-service authentication and custom route protection service using CI4
- Host: GitHub
- URL: https://github.com/robinncode/simple-api
- Owner: robinNcode
- License: mit
- Created: 2024-11-01T04:41:28.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-12-16T10:38:54.000Z (over 1 year ago)
- Last Synced: 2025-07-11T15:32:41.149Z (11 months ago)
- Language: PHP
- Size: 2.5 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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
```
2. If you don't have PHP 8.2+ installed. You can run the project with docker.
```
docker-compose up --build
```
3. To stop the docker container.
```
docker-compose down
```
4. 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
```
5. To run migrations.
```
php spark migrate
```
with docker.
```
docker-compose exec app php spark migrate
```