(This project uses the Vuexy HTML Template for the frontend scaffolding) and Laravel frame work
This README.md file will contain the step by step instructions on how to setup the codebase and install all dependencies
- create inventories
- Update inventories
- Delete inventories
- add inventory comments
- list out all inventories created.
XAMPP is a free softwares. The software packet contains the web server Apache, the relational database management system MySQL (or MariaDB), and the scripting languages Perl and PHP. The initial X stands for the operating systems that it works with: Linux, Windows, and Mac OS X
- Select the components to install with XAMP Actually we only need Apache, MySQL, and phpMyAdmin.
- Select the installation folder. In default, it will be C:\xampp
- Open XAMPP and start the Apache and MySQL.
- All codes should be stored in xampp/htdocs
foo@bar:~$ sudo apt install apache2foo@bar:~$ Run sudo apt install apache2foo@bar:~$ sudo service apache2 statusfoo@bar:~$ sudo apt -y install software-properties-commonfoo@bar:~$ sudo add-apt-repository ppa:ondrej/phpfoo@bar:`$ sudo apt-get updatefoo@bar:~$ * sudo apt -y install php8.0foo@bar:~$ sudo apt install mysql-server mysql-clientfoo@bar:~$ sudo mysql_secure_installation- enter a pssword
foo@bar:~$ sudo mysql -u root -Enter the password you specified in the previous step
- open the github repository and copy the code url
- open code editor and locate the terminal
- clone the repo
foo@bar:~$ git clone url_link- install all dependencies
foo@bar:~$ composer install (to download all dependencies needed) - on a new terminal create a database on mysql (login into mysql using )
foo@bar:~$ mysql -u root -p
enter password:
mysql> CREATE SCHEMA customers- Specify your databse NAME, PASSSWORD AND USERNAME on the .env file in the base folder.
foo@bar:~$ cp .env.example .env (to create .env file)- Generate an application key( App key would be automatically generated under APP_KEY variable in .env file)
foo@bar:~$ php artisan key:generate- Run the code
foo@bar:~$ php artisan servecreate needed tables
foo@bar:~$ php artisan migrate- go the a web app and type 127.0.0.1:8000/ or follow the link on the terminal.
The app folder
- Contains several other folders but we can locate the Http folder which contains the PagesController folder that serves and a mediator between the front-end and database
- The models folder can also be found in the Apps folder and this basically interacts with the database.
The database folder
- The database folder has a subfolder called the migration folder that handles migrations. This folders save files that assist us communicate directly to the folder eg we can create tables, add colums etc.
The resources folder
- The resources folder contains the views folder that holds all our pages to be loaded. Other folders in the resources folder are majourly front-end based.
The routes folder
- In routes folder the web.php file contains all routes that would be needed.
The .env file
- Its used to define some variables you want to pass into your application's environment. Make sure to specify the USERNAME, DATABASE NAME AND PASSWORD
The side bar
All inventories page: Loads all inventories fronm the database
Create Inventory page: That allows for the creation of inventories
Trash page: That allows one see deleted items and helps restore or delete them totally
All Inventories page
- A table that list all the information in the dadabase: scrolling left allows you to access the edit and delete botton.
Create Invetory page
- This page allows the creation of inventories
Trash
- This page contains all deleted inventories. You can restore deleted item and also delete them parmanently.