An open API service indexing awesome lists of open source software.

https://github.com/renzocarara/kuoz

exercise: implement CRUD operations on a DB of quotes through Laravel and Vue
https://github.com/renzocarara/kuoz

api laravel postgresql vuejs vuetify

Last synced: 4 months ago
JSON representation

exercise: implement CRUD operations on a DB of quotes through Laravel and Vue

Awesome Lists containing this project

README

        

Kuoz

# Overview

This app is an exercise to experiment how Laravel Backend can communicate with Vue Frontend.

Vue makes axios calls to Laravel APIs that implement CRUD operations on a SQL Data Base (a PostgreSQL DB in this case).

# How to install it locally

### Download sources

From this page, click on the "Code" green button and select **Download ZIP**.\
Unzip the downloaded file and from your command line move into the created directory where files
has been placed.

### Set Data Base parameters

Copy the **".env.example"** in a file named **".env"**

```
cp .env.example .env
```

Edit the .env file and insert the following information:

> DB_DATABASE=your_db_name

> DB_USERNAME=your_username

> DB_PASSWORD=your_password

NOTE: you should have been created a postgres DB before.

### Get Node Dependencies and compile

Run the following command to install all needed dependencies:

```
npm install
```

then compile:

```
npm run dev
```

### Get Composer dependencies

```
composer update
```

### Generate a Laravel key

```
php artisan key:generate
```

# Run application

```
php artisan serve
```

You should see indications about the localhost name where the application is running,
something like the following:

> Starting Laravel development server: http://127.0.0.1:8000 > [Wed Jan 20 10:26:12 2021] PHP 7.4.3 Development Server (http://127.0.0.1:8000) started

Open the indicated local address in your browser.

# License

Kuoz is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT).