Skip to content

YubiRepo/test-api

Repository files navigation

TEST API

Table of Contents

  1. Requirements
  2. Setup
  3. Production Setup

Requirements

Setup

  1. Clone or download
git clone https://github.com/YubiRepo/test-api
  1. CD into /test-api
cd test-api
  1. Install Laravel dependency
composer install
  1. Create copy of .env
cp .env.example .env
  1. Generate laravel key
php artisan key:generate
  1. Set database name and account in .env
DB_DATABASE=test_api
DB_USERNAME=root
DB_PASSWORD=
  1. Run Laravel migrate and seeder
php artisan migrate --seed
  1. Create the symbolic link
php artisan storage:link
  1. Start development server
php artisan serve
  1. Login
{
    "email": "admin@example.com",
    "password": "password"
}

Go to /api/login

Production Setup

Apply changes to .env file:

APP_ENV=production
APP_DEBUG=false

Run these commands sequentially

composer install --optimize-autoloader --no-dev
php artisan storage:link
php artisan optimize

About

test api

Topics

Resources

Stars

Watchers

Forks