$ git clone https://github.com/omedale/turing-app-back.git
$ cd turing-app-back
$ composer install
$ cp .env.example .env
$ cp .env.example .env.testing
.env
- Environment variables can be set in this file for development.env.testing
- Environment variables can be set in this file for testting
$ mysql -u root
> create database dev
> create database test
> exit
$ cd database/db
$ mysql -u root dev < shop.sql
$ mysql -u root test < shop.sql
$ php artisan migrate
$ php artisan key:generate
$ php artisan jwt:generate
$ composer test
Run the laravel development server
$ php artisan serve
This applications uses JSON Web Token (JWT) to handle authentication. The token is passed with each request using the API-KEY
header with Bearer token
scheme. The JWT authentication middleware handles the validation and authentication of the token.