##Setup / Installation
-
Download and install git
-
Clone project
> git clone https://github.com/ereyomi/libraryApi
-
cd project-name
-
Install Dependencies
> npm install (optional)
> composer require
- Copy the .env.example file and rename it into the .env file (For this you can run the following command)
> copy .env.example .env
- Run the following command to generate a new key
> php artisan key:generate
- Migrate DataBase
> php artisan migrate
> php artisan db:seed (start up with dummy data)
> php artisan migrate:fresh --seed (this is the combination of the above commands)
- Run project
> php artisan serve
- if you run into any problem concerning connecting to database, run the following commands
> php artisan config:cache
> php artisan config:clear
> restart server: php artisan server
- Set the right permissions on all directories and files in your project by simply running (Optional)
> chmod 755 -R nameofyourproject/
> chmod -R o+w nameofyourproject/storage
The Laravel framework is open-sourced software licensed under the MIT license.