There is warehouse with many employees who can add/edit/delete products to stock. Also there are many categories of products. Such case is possible that one products belongs to many categories. There should be possibility to add and remove new employees to the system. Product should contain picture, description, price and whatever.
This Application use the PHP, Yii 2 Framework and MySQL database
Yii 2 Basic Project Template is a skeleton Yii 2 application best for rapidly creating small projects.
The template contains the basic features including user login/logout and a contact page. It includes all commonly used configurations that would allow you to focus on adding new features to your application.
To install and running the APP is required to following the instructions bellow:
Clone the repository
git clone [email protected]:youruser/Warehouse.gitConfigure your database connection, in the root of the project open the file and change data using the command below
$ vim basic/config/db.phpThe file have the struct below:
<?php
return [
'class' => 'yii\db\Connection',
'dsn' => 'mysql:host=locahost;dbname=warehouse',
'username' => 'root',
'password' => 'dbpassword',
'charset' => 'utf8',
];create the vhost
<VirtualHost *:80>
ServerAdmin warehouse.dev
DocumentRoot "/Users/username/wwwroot/app/warehouse/basic/web"
ServerName warehouse.dev
ErrorLog "/Users/username/wwwroot/log/warehouse-error_log"
CustomLog "/Users/username/wwwroot/log/warehouse-access_log" common
</VirtualHost>P.S. Can be necessary to give written permission in the images folder and other that are inside
Create the database using the script below
CREATE DATABASE warehouse;Run the migrations in the terminal
php yii migrate newThis migration will be create all of the tables and insert a user to init of use.
if is necessaire, I'm making a database dump available to alread run the application with data, the dump is in the script folder inside the root of the project.
if you're using the dump data, the password of the [email protected] user is: senha123
Username: [email protected]
Password: password123

