1. Clone this repo:
git clone [email protected]:quangnd/laravel-restapi.git
2. Install the dependencies:
composer install
3. Generate application key:
php artisan key:generate
4. Setup database config .env
...
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=contact
DB_USERNAME=your-mysql-username
DB_PASSWORD=your-mysql-password
...
5. Running Database Migration
php artisan migrate
6. Running Database Seeder
php artisan db:seed
7. Running Development Server
php artisan serve
Please open the following url
localhost:8000