https://github.com/sihar/lumen-api
https://github.com/sihar/lumen-api
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/sihar/lumen-api
- Owner: sihar
- Created: 2025-02-11T23:27:08.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-11T23:31:43.000Z (over 1 year ago)
- Last Synced: 2025-02-12T00:26:25.821Z (over 1 year ago)
- Language: PHP
- Size: 0 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Microservice API using Lumen Framework (PHP)
## Setup
1. Clone this repository
```bash
git clone http://api_repository_url
```
2. Open the folder
```bash
cd lumen-api
```
3. Run composer install
```bash
composer install
```
4. Copy file .env.sample and rename into .env
Adjust the credentials
5. Create table on database
```
php artisan migrate
```
6. Generate data on table users
```
php artisan db:seed --class=UsersTableSeeder
```
7. Publish and generate swagger documentation
```bash
php artisan swagger-lume:publish
php artisan swagger-lume:generate
```
8. Serve PHP file
```bash
php -S localhost:8000 -t public/index.php
```
9. Open API documentation
```
http://localhost:8000/api/documentation
```