https://github.com/fauzanmuh/test-bmtmedia
Restful API Laravel 11
https://github.com/fauzanmuh/test-bmtmedia
backend laravel11 sanctum
Last synced: about 2 months ago
JSON representation
Restful API Laravel 11
- Host: GitHub
- URL: https://github.com/fauzanmuh/test-bmtmedia
- Owner: fauzanmuh
- Created: 2024-09-07T04:32:57.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2024-09-09T08:47:15.000Z (almost 2 years ago)
- Last Synced: 2025-01-09T11:45:24.620Z (over 1 year ago)
- Topics: backend, laravel11, sanctum
- Language: PHP
- Homepage:
- Size: 834 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Dokumentasi API
- API Login

- API Logout

- API Create User

- API Read User

- API Update User

- API Delete User

- API Create Role

- API Create User Role

- API Read User Role

- API Create Posts

- API Read Posts

- API Update Posts

- API Delete Posts (Bukan user yang membuat posts tersebut)

- API Delete Posts (User yang membuat posts tersebut)

- API Upload Foto

## Panduan Menjalankan & Install Aplikasi
Buat Database
Clone project
``` $ git clone https://github.com/fauzanmuh/Test-BMTMedia.git ```
Buka Kode editor → Terminal.
Masukkan perintah di bawah ini satu per satu (Tanpa $),
```
$ composer update
$ composer install
$ cp .env.example .env
$ php artisan key:generate
```
Edit the .env file like this,
```
DB_CONNECTION = mysql
DB_HOST = 127.0.0.1 // change to Host your database
DB_PORT = 3306
DB_DATABASE = terserah // change to the name of the database table that you created
DB_USERNAME = root // change to be your database username, default root
DB_PASSWORD = // change to your databse password, null default
```
Migrate database:
```$ php artisan migrate```
Done 😉, untuk menjalankannya:
```$ php artisan serve```
Menjalankan Unit Testing
``` $ php artisan test```
Thank you 😁