Skip to content

Ojsholly/rental-system

Repository files navigation

Rental System Backend Implementation

Project Description

The project is a collection of endpoints for a Book and Equipment Rental System. A postman collection for the endpoints can be found at https://documenter.getpostman.com/view/22569385/VUr1JDGK. A postman collection dump is also available in the root of the project.

Project Setup

Cloning the GitHub Repository.

Clone the repository to your local machine via https by running the terminal command below.

git clone https://github.com/Ojsholly/rental-system.git

Setup Database

Create your MySQL database and note down the required connection parameters. (DB Host, Username, Password, Name)

Install Composer Dependencies

Navigate to the project root directory via terminal and run the following command.

composer install

Create a copy of your .env file

Run the following command

cp .env.example .env

This should create an exact copy of the .env.example file. Name the newly created file .env and update it with your local environment variables (database connection info, stateful domains and others).

Generate an app encryption key

php artisan key:generate

Run database migrations and seeders

php artisan migrate --seed

Run Tests

php artisan test

License

MIT

About

NQLB Backend Technical Assessment

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages