Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: about 2 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 (2 months ago)
- Default Branch: master
- Last Pushed: 2024-11-02T07:45:37.000Z (2 months ago)
- Last Synced: 2024-11-02T08:22:46.959Z (2 months ago)
- Language: PHP
- Size: 76.2 KB
- 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
```