Skip to content

Latest commit

 

History

History
139 lines (95 loc) · 3.81 KB

README.md

File metadata and controls

139 lines (95 loc) · 3.81 KB

LaraBooks REST API

REST API for Online Book Store with admin panel integration.

| Admin Panel Features | Requirements | Install | How to setting | API Docs | License |

Admin Panel Features

  • Preview
  • Menu

    Description
    Admin Create user and manage the user's role.
    Categories Manage about all categories.
    Books Manage all type of the books.
    Orders Manage about all orders.
    Profile Edit user's profile and password.

Requirements

PHP = ^7.4
laravel = ^7.0
laravel/sanctum = ^2.15
laravel/ui = ^2.1
kavist/rajaongkir = ^1.1
midtrans/midtrans-php = ^2.5

Install

Clone repo

git clone https://github.com/muhammadhabibfery/LaraBooks-API.git

Install Composer

Download Composer

composer update/install

composer install

Install Nodejs

Download Node.js

NPM dependencies

npm install

Using Laravel Mix

npm run dev

How to setting

Go into .env file change Database and Email credentials. Then setup the rajaongkir and midtrans configuration with your own credentials

RAJAONGKIR_API_KEY=<Your-API-Key>

MIDTRANS_SERVER_KEY = <Your-Server-Key>
MIDTRANS_PRODUCTION = false
MIDTRANS_SANITIZED = true
MIDTRANS_3DS = true|false

Run the migration

php artisan migrate

Or run the migration with seeder if you want seeding the related data

php artisan migrate --seed

Generate a New Application Key

php artisan key:generate

Create a symbolic link

php artisan storage:link

API Docs

Preview


Complete REST API Documentation can be found here

License

Copyright (C) 2023 Muhammad Habib Fery.
⬆ back to top

Build Status Total Downloads Latest Stable Version License