Skip to content

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

License

Notifications You must be signed in to change notification settings

zeroc0d3/mycampus

Repository files navigation

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

Test Case API (PostmanBDD)

  • Install Postman
  • 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

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published