An open API service indexing awesome lists of open source software.

https://github.com/zeroc0d3/mycampus

MyCampus RestAPI is a simple restapi project for academic information system, build on the top of Laravel PHP Framework using Dingo and JWT for authentication
https://github.com/zeroc0d3/mycampus

api dingo jwt laravel laravel-php-framework mycampus-restapi restapi test-driven-development

Last synced: about 1 month ago
JSON representation

MyCampus RestAPI is a simple restapi project for academic information system, build on the top of Laravel PHP Framework using Dingo and JWT for authentication

Awesome Lists containing this project

README

          

## MyCampus RestAPI

MyCampus RestAPI is a simple restapi project for academic information system, build on the top of Laravel PHP Framework using Dingo and JWT for authentication. Features cover:
* Campus profile
* Faculty (fakultas)
* Concentration (jurusan)
* Lecture (dosen)
* Student (mahasiswa)
* Courses (mata kuliah)
* Semester Courses (mata kuliah semester)
* Study Planing (rencana studi)
* Study Result (hasil studi)

## Installation

### Step 1: Clone the repo
```
git clone https://github.com/zeroc0d3/mycampus
```

### Step 2: Prerequisites
```
cp .env.example .env
composer install
php artisan migrate
php artisan db:seed
php artisan key:generate
php artisan vendor:publish --provider="Tymon\JWTAuth\Providers\JWTAuthServiceProvider"
php artisan jwt:generate
```

### Step 3: Serve
```
php artisan serve
```

### Note about Apache
If you use Apache to serve this, you will need to add the following 2 lines to your .htaccess (or your virtualhost configuration):
```
RewriteCond %{HTTP:Authorization} ^(.*)
RewriteRule .* - [e=HTTP_AUTHORIZATION:%1]
```

### Step 4: Optimize & Clear cache
```
composer dumpautoload -o
php artisan cache:clear
php artisan view:clear
```

### Note about upgrade
If you have change from branch laravel 5.1 to laravel 5.2 you need to update the composer and run the step 4.
```
composer update
```

### Login User
* username: admin@mycampus.app / user1@mycampus.app / user2@mycampus.app
* password: password

### Test Case API (PostmanBDD)
* Install [Postman](http://www.getpostman.com/)
* Import postman collection in `docs` folder
* Run the test api from each scenario

### Learn More
You can review how to running automation test case from our repository [here](https://github.com/zeroc0d3/json-postman)