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)
git clone https://github.com/zeroc0d3/mycampus
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
php artisan serve
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]
composer dumpautoload -o
php artisan cache:clear
php artisan view:clear
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
- username: admin@mycampus.app / user1@mycampus.app / user2@mycampus.app
- password: password
- Install Postman
- Import postman collection in
docs
folder - Run the test api from each scenario
You can review how to running automation test case from our repository here