- Clone the repo
git clone https://github.com/kelvinhenri99/APIREST_liberfly.git
- Install Laravel dependencies
composer install
- Duplicate the '.env.example' file and place it as .env
DB_DATABASE = yourdatabase_name
DB_USERNAME = your_username
DB_PASSWORD = your_password
- Run migration & Seeder
php artisan migrate --seed
- Generate your application encryption key using
php artisan key:generate
- Generate Swagger API
php artisan l5-swagger:generate
- Start the server
php artisan serve
To access documentation via Swagger:
http://127.0.0.1:8000/api/documentation
1° - Create a new User (EMAIL | NAME | PASSWORD)
2° - Login with previously created email and password With login, it will generate the token that will be necessary to validate the other routes
3° - Test another route passing token in validation to access data