Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fauzanmuh/test-bmtmedia
Restful API Laravel 11
https://github.com/fauzanmuh/test-bmtmedia
backend laravel11 sanctum
Last synced: 3 days 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 (2 months ago)
- Default Branch: master
- Last Pushed: 2024-09-09T08:47:15.000Z (2 months ago)
- Last Synced: 2024-09-10T08:09:53.555Z (2 months 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
![](https://github.com/fauzanmuh/Test-BMTMedia/raw/master/dokumentasiAPI/login.png)- API Logout
![](https://github.com/fauzanmuh/Test-BMTMedia/raw/master/dokumentasiAPI/logout.png)- API Create User
![](https://github.com/fauzanmuh/Test-BMTMedia/raw/master/dokumentasiAPI/createUser.png)- API Read User
![](https://github.com/fauzanmuh/Test-BMTMedia/raw/master/dokumentasiAPI/readUser.png)- API Update User
![](https://github.com/fauzanmuh/Test-BMTMedia/raw/master/dokumentasiAPI/updateUser.png)- API Delete User
![](https://github.com/fauzanmuh/Test-BMTMedia/raw/master/dokumentasiAPI/deleteUser.png)- API Create Role
![](https://github.com/fauzanmuh/Test-BMTMedia/raw/master/dokumentasiAPI/createRole.png)- API Create User Role
![](https://github.com/fauzanmuh/Test-BMTMedia/raw/master/dokumentasiAPI/createUserRole.png)- API Read User Role
![](https://github.com/fauzanmuh/Test-BMTMedia/raw/master/dokumentasiAPI/readUserRole.png)- API Create Posts
![](https://github.com/fauzanmuh/Test-BMTMedia/raw/master/dokumentasiAPI/createPosts.png)- API Read Posts
![](https://github.com/fauzanmuh/Test-BMTMedia/raw/master/dokumentasiAPI/readPosts.png)- API Update Posts
![](https://github.com/fauzanmuh/Test-BMTMedia/raw/master/dokumentasiAPI/updatePosts.png)- API Delete Posts (Bukan user yang membuat posts tersebut)
![](https://github.com/fauzanmuh/Test-BMTMedia/raw/master/dokumentasiAPI/deletePosts1.png)- API Delete Posts (User yang membuat posts tersebut)
![](https://github.com/fauzanmuh/Test-BMTMedia/raw/master/dokumentasiAPI/deletePosts2.png)- API Upload Foto
![](https://github.com/fauzanmuh/Test-BMTMedia/raw/master/dokumentasiAPI/uploadFoto.png)## 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 😁