Mypets
A social network and e-commerce for pet shops.
Install / Use
/learn @davidsonbrsilva/MypetsREADME
Mypets
Mypets is a simple social network and e-commerce for pet shops.
Requirements
Technologies
- PHP version 7.0.0 or above. Checked with version 7.3.7;
- A Database Management System (DMS). We used MySQL by default;
- Composer Package Manager (we used version 1.9.0);
- REST client to test API routes (we recommend Insomnia);
Setup
- Create a empty database called
mypetsthrough your DMS;
Installation
-
Clone this repository;
-
Browse to the project root folder;
-
Duplicate the
.env.examplefile and rename it to.env; -
Open the
.envfile in your text editor to input your database configuration. The default values are:DB_CONNECTION: mysql DB_USERNAME: root DB_PASSWORD: -
Open your terminal in root folder and type the follow commands:
-
composer install.
This install all dependecies of the application; -
composer dump-autoload.
This loading the autoload of the application; -
php artisan key:generate.
This generates a key for the application; -
php artisan migrate.
This creates the project tables in database; -
php artisan db:seed(optional).
This creates random data to feed the database. -
php artisan serve.
This starts the development server to listen our requests in specified ip and port (localhost:8000 by default).
-
Note:
If you get the error
'Could not scan for classes inside "database/factories" which does not appear to be a file nor a folder'
creates 'factories' in 'database' folder.
Usage
- Open your REST client. We recommend Insomnia, but feel free to choose yours.
- Send requests as per API specification to retrieve data in JSON format.
Support
See our Wiki.
Contact
Send an email to davidsonbruno@outlook.com.
License
This project is guarded by MIT License.
