/booking-room-api

room borrowing system on campus

Primary LanguageHTML

Booking Room App API

API Server based on Laravel v8

Table of contents

Prerequisites

  • PHP (8)

Please install these extensions on your code editor :

  • laravel intellisense

Setup

  1. Fork this Repository:
  2. Clone Repository for your fork
$ git clone https://github.com/{username-anda}/booking-room-api.git
  1. Add upstream to the clone results
$ git remote add upstream https://github.com/akhmadrizki/booking-room-api.git
  1. Copy file .env.example to .env:
  2. Install all package
$ composer install

Running the app

$ php artisan serve

Database setup

...
DB_DATABASE=sibook
DB_USERNAME=root
DB_PASSWORD=
...
  • Run this command:
$ php artisan key:generate
$ composer dump-autoload
$ php artisan migrate:fresh --seed
$ php artisan storage:link
  • For use Passport
$ composer require laravel/passport
$ php artisan migrate
$ php artisan passport:install

Following are the steps that must be taken in the contribution process

  1. Always pull upstream whenever you want to start developing
$ git pull upstream master
  1. Create a new branch for each developed feature. Example:
$ git branch feature/add-login // Contoh saat membuat branch untuk fitur baru
$ git branch bug/fix-menu // Contoh saat membuat branch untuk fix bug
  1. If your work already done, push to the repo of your fork
$ git push origin {nama-branch}
  1. When ready to be taken to the main repository. Make a Pull Request from your branch to the master branch. Before the pull request, make sure the branch is clean. If there is a conflict, please fix the conflict. Make sure to make a good title and description so it's easy to understand!
  2. Ganbatte!!!