The API used in the Vue for the Real World Book.
We won't be using Vagrant for this app thank god. We'll be using PHP's local server to serve the app and SQLite (file) as our database.
- Create a database file:
touch database/database.sqlite
- Install Composer Packages:
composer install
- Install JS Packages:
npm install
- Copy
.env.example
to.env
- Create an APP_SECRET:
php artisan key:generate
- Create a JWT_SECRET:
php artisan jwt:secret
- Migrate:
php artisan migrate
- Run the App:
php artisan serve
- View App: http://localhost:8000
Users will create an account here.
They will then be sent to the dashboard which is just API docs.
They will authenticate and get a token through Vue.