Development environment requirements :
Setting up your development environment on your local machine with Homestead :
$ git clone https://github.com/dangtienngoc/simple_laravel_react
$ cd simple_laravel_react
$ cp .env.dev .env
$ composer install
$ vagrant up
Now you can access the site via http://192.168.10.10 or http://boxinator.app if you added the domain to your hosts file.
The following commands must be executed on the virtual machine :
$ vagrant ssh
$ cd /home/vagrant/simple_laravel_react
You need to run the migrations :
$ php artisan migrate
And then, compile the assets :
$ npm install
$ npm run start
Clients can access to the REST API. API requests require authentication via token. You can create a new token in your user profil.
Then, you can use this token either as url parameter or in Authorization header :
# Get all shipping
GET http://boxinator.app/api/shipping
# Post shipping
POST http://boxinator.app/api/shipping
This project is released under the MIT license.