PHP application to demonstrate OOP concepts.
- Add/Delete Books
- Register as a Customer
- Order a book
- asset
- css: all the
CSS
/SASS
files generated from gulp-scss - js: all the
javascript
files - images: all the image files (
jpg
,png
,gif
etc) - scss: all the
scss
code
- css: all the
- public-html: all the publicly visible files like
index.php
etc. - resources
- src: all the php files which contains
class definitions
. - template: all the template files for layout e.g
header
,sidebar
etc.
- src: all the php files which contains
$ git clone https://github.com/JayKandari/bookhive
- Setup virtual host for the project. You can refer to this to setup vhost for apache in linux.
- In the
.conf
file specifyDocumentRoot path/to/folder/bookhive/public-html
. Note:path/to/folder/
the path which contains clone of the project.
- Create a database in phpmyadmin named
bookhive
to store all the book details. - Open the newly created database and import the
bookhive.sql
file provided with the repo. (this file contains all the table structures and soo on)
You can refer this to setup composer.
After install run the following command in the project directory. (this will install any dependencies or load autoload)
$ composer install
Place a file named dbcred.json
in the resources directory, with the following info
{
"type":"DB_Type",
"dbname":"DB_Name",
"username":"DB_Username",
"pass":"DB_Password",
"host":"DB_Hostname",
"port":"DB_Port_num",
"baseurl":"Site_BaseUrl"
}
Follow this getting started with gulp guide to install gulp and understand what it is all about!
Start the gulp sass
$ npm install
$ gulp sass
- Home
- Book display
- Register
- User home
- Profile settings
- Admin controls
- DBMS Management
- Session-Cookie Management