Skip to content

adaugochi/rental-store-api

Repository files navigation

License

About

The store rents out books and equipment to users.

Features

  • ERD for the database. Located project_directory/public/images/ERD.png
  • Endpoints
  • Postman collection. Located project_directory/public/RentalStore.postman_collection.json
  • Check Logs. Command to run is seen below
php artisan check:logs

Requirements

  • PHP 7.4
  • composer

Clone

You have to clone this repo using either HTTPS or SSH

  • HTTPS
git clone https://github.com/adaugochi/rental-store-api.git
  • SSH
git clone [email protected]:adaugochi/rental-store-api.git

Install Dependencies

Composer Dependencies

composer install

Virtual Host Setup (optional)

Windows Link 1 Link 2

Mac Link 1 Link 2

Debian Linux Link 1 Link 2

Sample Virtual Host Config for Apache

<VirtualHost *:80>
    ServerAdmin [email protected]
    DocumentRoot "<WebServer Root Dir>/rental-store-api/public"
    ServerName local.manup.com
    <Directory <WebServer Root Dir>/rental-store-api/public>
       AllowOverride all
       Options -MultiViews
      Require all granted
    </Directory>
</VirtualHost>

Environment Variables

Make a copy of .env.example to .env in the env directory.

Setup Database

Create Database

CREATE DATABASE rental_store;

Migration

php artisan migrate

Specify Path

php artisan migrate --path=database/migrations/filename.php

Seeding

php artisan db:seed --class=UserRentSeeder

Starting the Application

You can run the application in development mode by running this command from the project directory:

php artisan serve

Author of README.md

Credits

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages