KW-API is middleware to dispatch information from services / applications to others, using messaging platform.
For deploying from git.
-
clone from repository
git clone https://github.com/KWRI/kw-api.git
-
run composer install, to install all reqiured library and dependencies
cd kw-api
composer install
-
configure .env file
copy from .env.list to .env change configuration that appropriate with your environment
-
run migrate, to create database
php artisan migrate:install
php artisan migrate:refresh
-
run db seed, to create 10 api_users
php artisan db:seed
-
create failed jobs table
php artisan queue:failed-table
-
setup node packages, on directory project, run
npm install
-
run gulp file to prepare ng-admin lib inside laravel
gulp ng-admin
Do not work on master branch directly!!!
- Create a branch for each ticket in waffle.io
- Create a branch from master branch
- Branch name should start with the ticket number. Let's say, you create a branch for ticket 45. Then you can use the following name "45-coreperson"
- After implementing new features / fixing issues, create pull request or notify Super Admin (Josh).
- When the Super Admin approves, you or he would merge the branch with master branch.
- You can delete the branch after merging.