Skip to content

Latest commit

 

History

History
25 lines (17 loc) · 802 Bytes

readme.md

File metadata and controls

25 lines (17 loc) · 802 Bytes

Meme Machine API

The API used in the Vue for the Real World Book.

Developing

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

Using for Frontend Users

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.