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
- Host: GitHub
- URL: https://github.com/zeroc0d3/mycampus
- Owner: zeroc0d3
- License: mit
- Created: 2016-12-11T14:00:22.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-04-23T15:21:30.000Z (about 9 years ago)
- Last Synced: 2025-07-07T05:44:54.460Z (12 months ago)
- Topics: api, dingo, jwt, laravel, laravel-php-framework, mycampus-restapi, restapi, test-driven-development
- Language: PHP
- Homepage:
- Size: 184 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
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)