Skip to content

rifaniponk/cemal-api

Repository files navigation

Cemal - Checklist Amalan Harian

Build Status Codecov branch StyleCI Code Coverage

Cemal adalah aplikasi untuk memudahkan seorang muslim mencatat amalan hariannya.

Server Requirement

  • PHP >= 7.0
  • OpenSSL PHP Extension
  • PDO PHP Extension
  • Mbstring PHP Extension
  • PostgreSQL 9.5.7

Running Up Development Environment

cd ~/code
git clone [email protected]:rifaniponk/cemal-api.git
  • Setup Homestead
cd ~
git clone https://github.com/laravel/homestead.git Homestead
cd Homestead
init.bat

Edit Homestead.yml

...
provider: virtualbox
...
folders:
    - map: ~/code
      to: /home/vagrant/code

*) you can change ~/code into your root project folder

Run homestead

cd ~/Homestead
vagrant up

Edit hosts file: linux: /etc/hosts, windows: C:\Windows\System32\driver\etc\hosts.

Add this line into your hosts file

192.168.10.10 cemal.api
  • Install Dependencies

Enter to vagrant box then run:

cd ~/vagrant/code/cemal-api
composer install
  • Setup Application & Database
cp .env.example .env
php artisan migrate:refresh --seed

Running unit test

Enter to vagrant box, then run

cd ~/vagrant/code/cemal-api
phpunit

API Documentation

api documentation is here http://cemal.api/api/documentation

if you had a new endpoint or changes, you need to run this to generate updated api documentation

php artisan swagger-lume:generate

About

Checklist Amalan Harian

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published