This Web App able to register user with name, birthdate and multiple email. The webapp made with laravel, bootstrap, vuejs with routing.
List all user with pagination
url : [project domain]/#/users
Create new user
url: [project domain]/#/CreateUser
- PHP >= 7.1.3
- OpenSSL PHP Extension
- PDO PHP Extension
- Mbstring PHP Extension
- Tokenizer PHP Extension
- XML PHP Extension
- Ctype PHP Extension
- JSON PHP Extension
- BCMath PHP Extension
- Vue 2.x does not support IE8 and below!
- Chrome >= 45
- Firefox >= 38
- Edge >= 12
- Explorer >= 10
- iOS >= 9
- Safari >= 9
- Android >= 4.4
- Opera >= 30
- Get github repository:
git clone https://github.com/vassdavid/SimpleUserWebApp.git
- Copy .env.example to .env in project folder.
- Edit database settings: (DB_DATABASE, DB_USERNAME, DB_PASSWORD) in .env file (create database if not exist).
- Run
composer install
in project folder. - Make app key with
php artisan key:generate
. - Migrate database tables
php artisan migrate
- Run app
php artisan serve
More info: laravel installation
The php artisan serve
command isn't enough to run the test functions.
Must run in a web server!
The test files are contained in the test folder. There are two types of tests: feature and unit test. The feature test contain the test of controller (read and write user). The unit test contain the test of User model. The project also have factories and database seeder.
If you fill generated users the database run the composer dump-autoload
and php artisan db:seed
command. laravel seeding
Run phpunit
command if you install phpunit in globally, else run vendor/bin/phpunit
in project folder.