Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/nawazm92/lara-bookstore

Laravel based simple bookstore app
https://github.com/nawazm92/lara-bookstore

bookstore http-basic-auth laravel laravel-application laravel-framework rest-api sample-app

Last synced: 10 days ago
JSON representation

Laravel based simple bookstore app

Awesome Lists containing this project

README

        

# lara-bookstore
Laravel based simple bookstore app

# Setup
* Clone repo
* Run ```composer install```
* Update your database configuration in .env
* Run ```php artisan migrate```
* Run ```php artisan serve```

# Usage
For web - Register / Login to manage books

For REST API, use Postman OR Advanced REST Client (Chrome Extenstions) to test

Note: REST API required HTTP Basic Authentication, so all your api routes needs Authorization header like following
```Authorization: Basic dXNlckBleGFtcGxlLmNvbTpwYXNzd29yZA==```

# REST API Routes
- GET: /books
- POST: /books
- PUT/PATCH: /books/{bookId}
- DELETE: /books/{bookId}