Skip to content

Latest commit

 

History

History
57 lines (41 loc) · 1.4 KB

README.md

File metadata and controls

57 lines (41 loc) · 1.4 KB

Run Project (Laravel and React.Js)

Installation

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.

Before starting

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

Accessing the API

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

License

This project is released under the MIT license.