Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fzldn/lumen-checklists
Simple REST API Checklists app using Lumen
https://github.com/fzldn/lumen-checklists
laravel lumen lumen-api php phpunit rest-api unit-testing
Last synced: 14 days ago
JSON representation
Simple REST API Checklists app using Lumen
- Host: GitHub
- URL: https://github.com/fzldn/lumen-checklists
- Owner: fzldn
- Created: 2019-06-08T01:09:53.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-02-02T06:37:31.000Z (about 2 years ago)
- Last Synced: 2024-11-27T18:34:55.013Z (2 months ago)
- Topics: laravel, lumen, lumen-api, php, phpunit, rest-api, unit-testing
- Language: PHP
- Homepage:
- Size: 66.4 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Checklists REST API
## Installation
- clone this repo
```bash
git clone https://github.com/fzldn/lumen-checklists.git
cd lumen-checklists
```
- make database `checklist`
- copy `.env.example` to `.env`
- edit `.env`
```
DB_DATABASE=checklist
DB_USERNAME={your_db_user}
DB_PASSWORD={your_db_password}
```
- run composer
```bash
composer install
```
- database migrate and seed
```bash
php artisan migrate --seed
```
- run app
```bash
php -S localhost:8000 -t public
```## Authentication
Use random apiKey in Header, example:
```
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6ImJjMzg2NTBi
```## Tests
- make database `checklist_tests`
- run tests
```bash
vendor/bin/phpunit
```