This is a test project "Time Management System"
Try demo: time.mobi22.com/view.html
Admin
Login: admin@system
Password: 123123
Manager
Login: manager@system
Password: 123123
User
Login: user@system
Password: 123123
- Laravel (with Eloquent ORM)
- MySQL
- AngularJS
- Bootstrap
- PHPUnit
All user actions used the API.
- Registration
POST: /api/user
- Login
POST: /api/user/login
- User list
GET: /api/user
- Update user
PUT: /api/user/:id
- Delete user
DELETE: /api/user/:id
- Add work
POST: /api/user/:userId/timerow
- Get work list
GET: /api/user/:userId/timerow
- Update work
PUT: /api/user/:userId/timerow/:id
- Delete work
DELETE: /api/user/:userId/timerow/:id
See API details in Laravel/tests/ApiTest.php
- Get a token using
POST: /api/user/login
- At every API request put the token to the header
X-Auth-Token
Laravel/tests/ApiTest.php
- Download
- Setup server endpoint to
Laravel/public
- Copy
Laravel/.env.example
toLaravel/.env.
and set database credentials - Run
php Laravel/artisan migrate