https://github.com/bradtraversy/larticles_vue_app
Laravel 5.5 API with a Vue.js frontend
https://github.com/bradtraversy/larticles_vue_app
Last synced: 5 months ago
JSON representation
Laravel 5.5 API with a Vue.js frontend
- Host: GitHub
- URL: https://github.com/bradtraversy/larticles_vue_app
- Owner: bradtraversy
- Created: 2018-02-19T18:54:07.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-08-20T12:30:47.000Z (over 7 years ago)
- Last Synced: 2025-04-08T20:43:30.561Z (8 months ago)
- Language: PHP
- Size: 663 KB
- Stars: 126
- Watchers: 18
- Forks: 97
- Open Issues: 6
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Larticles Laravel/Vue App
> Laravel 5.5 API that uses the API resources with a Vue.js frontend
## Quick Start
``` bash
# Install Dependencies
composer install
# Run Migrations
php artisan migrate
# Import Articles
php artisan db:seed
# Add virtual host if using Apache
# If you get an error about an encryption key
php artisan key:generate
# Install JS Dependencies
npm install
# Watch Files
npm run watch
```
## Endpoints
### List all articles with links and meta
``` bash
GET api/articles
```
### Get single article
``` bash
GET api/article/{id}
```
### Delete article
``` bash
DELETE api/article/{id}
```
### Add article
``` bash
POST api/article
title/body
```
### Update article
``` bash
PUT api/article
article_id/title/body
```
```
## App Info
### Author
Brad Traversy
[Traversy Media](http://www.traversymedia.com)
### Version
1.0.0
### License
This project is licensed under the MIT License