API Server based on Laravel v8
- PHP (8)
Please install these extensions on your code editor :
- laravel intellisense
- Fork this Repository:
- Clone Repository for your fork
$ git clone https://github.com/{username-anda}/booking-room-api.git
- Add upstream to the clone results
$ git remote add upstream https://github.com/akhmadrizki/booking-room-api.git
- Copy file
.env.example
to.env
: - Install all package
$ composer install
$ php artisan serve
...
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
- Always pull upstream whenever you want to start developing
$ git pull upstream master
- 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
- If your work already done, push to the repo of your fork
$ git push origin {nama-branch}
- 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! - Ganbatte!!!