Domsab / AVRillo-task

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Description

Rest API serving random Kanye West quotes

A secure API connecting to the kanye.rest API

Getting Started

Prerequisites

The things you need before installing the software.

  • PHP 8.2
  • Composer
  • Node
  • Docker

Installation

Clone from Github

git clone git@github.com:Domsab/AVRillo-task.git
cd AVRillo-task/

Composer install

composer install

Setup Laravel .env & database

cp .env.example .env
php artisan key:generate
vendor/bin/sail artisan migrate

Run Laravel Sail in detached mode

vendor/bin/sail up -d

Install npm packages

npm install

And finally run the application

vendor/bin/sail npm run dev

Usage

Create a new user using the following command take note of the returned api token

./vendor/bin/sail artisan api:manage-users

Login via http://localhost/ using email password and api token

Tests

./vendor/bin/sail test

About


Languages

Language:PHP 62.2%Language:Vue 35.4%Language:JavaScript 1.7%Language:Blade 0.6%Language:CSS 0.1%