Skip to content

Commit e42cdcc

Browse files
authored
Merge pull request Qloapps#13 from abhishek-webkul/theme
Add sections Theme, Upgrade and CLI installation
2 parents 920e276 + d7a7bdb commit e42cdcc

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+14634
-796
lines changed

README.md

+47
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# QloApps Development Documentation
2+
3+
The online version of this documentation is hosted at [https://devdocs.qloapps.com](https://devdocs.qloapps.com/).
4+
5+
## Contribution guide
6+
7+
Contributions are more than welcome! To start contributing to this documentation, you need to deploy it locally and make the required changes. Here is how to deploy:
8+
9+
- Fork this repository.
10+
11+
- Clone your fork.
12+
13+
- Follow the [Install dependencies](#Install-dependencies) section.
14+
15+
Before making a contribution using a pull request make sure:
16+
17+
- If adding a new page, its topic has not been covered already.
18+
19+
- To use proper terminology as used in this documentation when referring to parts of QloApps.
20+
21+
- To use `kebab-case` when adding a new file. For example, `new-file-one.md`, `new-file-two.md` etc.
22+
23+
Follow VuePress official guide at [https://vuepress.vuejs.org/guide](https://vuepress.vuejs.org/guide/) for further help.
24+
25+
## Install dependencies
26+
27+
- Clone the repository somewhere on your system:
28+
```
29+
git clone https://github.com/Qloapps/qloapps-docs.git
30+
```
31+
32+
- Switch to the `qloapps-docs` directory:
33+
```
34+
cd qloapps-docs
35+
```
36+
37+
- Install all dependencies:
38+
```
39+
npm install
40+
```
41+
42+
- Build and deploy your repository:
43+
```
44+
npm run docs:dev
45+
```
46+
47+
- Open your browser and go to [http://localhost:8080](http://localhost:8080).

docs/.vuepress/config.js

+17-7
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ module.exports = {
6262
['database/', 'Structure'],
6363
['database/schema', 'Schema'],
6464
['database/db-class', 'Database Class'],
65-
['database/db-query-class', 'Database Query Class'],
65+
['database/db-query-class', 'Database DbQuery Class'],
6666
['database/object-model-class', 'Object Model Class'],
6767
]
6868
},
@@ -84,8 +84,8 @@ module.exports = {
8484
['module_development/folder-structure', 'Folder Structure'],
8585
['module_development/classes', 'Module classes'],
8686
['module_development/configuration', 'Adding a Configuration page'],
87-
['module_development/Frontoffice-controller', 'Display Content in Front Office'],
88-
['module_development/admin-controller', 'Manage Module through Admin Controler'],
87+
['module_development/frontoffice-controller', 'Display Content in Front office'],
88+
['module_development/admin-controller', 'Manage Module through Admin Controller'],
8989
['module_development/module-translations', 'Translations'],
9090
]
9191
},
@@ -94,25 +94,35 @@ module.exports = {
9494
path: '/webservice/',
9595
collapsable: true,
9696
children: [
97-
['webservice/enable_webservices', 'Enable Webservice'],
97+
['webservice/enable-webservice', 'Enable Webservice'],
9898
['webservice/basic-topics', 'Basics | First Steps'],
9999
['webservice/qloapps-webservice-lib', 'QloApps Webservice Library'],
100-
['webservice/advance-api-uses', 'Advance Api Uses'],
100+
['webservice/advanced-api-uses', 'Advanced API Uses'],
101101
]
102102
},
103103
{
104104
title: 'Theme',
105105
path: '/theme/',
106106
collapsable: true,
107+
children: [
108+
['theme/', 'Introduction'],
109+
['theme/directory-structure', 'Directory Structure'],
110+
['theme/creating-a-theme', 'Creating a Theme'],
111+
['theme/designing-the-theme', 'Designing the Theme'],
112+
['theme/theme-modules', 'Theme Modules'],
113+
['theme/exporting-a-theme', 'Exporting a Theme'],
114+
['theme/installing-a-theme', 'Installing a Theme'],
115+
['theme/best-practices', 'Best Practices'],
116+
]
107117
},
108118
{
109119
title: 'Testing',
110120
path: '/testing/',
111121
collapsable: true,
112122
},
113123
{
114-
title: 'Updation & Migration',
115-
path: '/updation_migration/',
124+
title: 'Upgrade',
125+
path: '/upgrade/',
116126
collapsable: true,
117127
},
118128
{

docs/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
home: true
33
heroText: QloApps Development Documentation
4-
tagline: This document will help you to develop on QloApps to tailor the system as per your vision
4+
tagline: This documentation will help you develop on QloApps to tailor the system as per your vision
55
actionText: Get Started →
66
actionLink: /introduction/
77
features:

docs/architecture/README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ QloApps is built by following the traditional object-oriented PHP practices. It
44

55
The custom framework is developed on [3-tier architecture.](https://en.wikipedia.org/wiki/Multitier_architecture#Three-tier_architecture)
66

7-
- **Object/data**. The files in the "classes" folder control the access of databases.
7+
- **Object/data**. The files in the `/classes` folder control the access of databases.
88

9-
- **Data control**. Files in the root folder control User-generated content.
9+
- **Data control**. Files in the root folder control user-generated content.
1010

11-
- **Design**. The "themes" folder contains the entirety of the theme's files are in.
11+
- **Design**. The `/themes` folder contains the entirety of the theme's files.
1212

13-
This is the same as the MVC architecture but it is simpler and more accessible.
13+
This is the same as the MVC architecture but it is simpler and more accessible.
+63-64
Original file line numberDiff line numberDiff line change
@@ -1,94 +1,94 @@
11
# Directory Structure
22

3-
Following is the directory structure of QloApps
4-
3+
Following is the directory structure of QloApps:
54

65
::: dir
7-
├── Adapter
8-
├── admin
9-
│ ├──autoupgrade
10-
│ ├──backups
11-
│ ├──export
12-
│ ├──filemanager
13-
│ ├──import
14-
│ └── themes
15-
├── cache
16-
├── classes
17-
├── config
18-
├── controllers
19-
│ ├── admin
20-
│ └── front
21-
├── Core
22-
├── css
23-
├── docs
24-
├── download
25-
├── img
26-
├── install
27-
├── js
28-
│ └── jquery
29-
├── localization
30-
├── log
31-
├── mails
32-
├── modules
33-
├── override
34-
│ ├── classes
35-
│ ├── controllers
36-
│ │ ├── admin
37-
│ │ └── front
38-
│ └── modules
39-
├── pdf
40-
├── themes
41-
├── tools
42-
├── translations
43-
├── upload
44-
└── webservice
6+
.
7+
├── hotelcommerce
8+
│ ├── Adapter
9+
│ ├── admin
10+
│ │ ├──autoupgrade
11+
│ │ ├──backups
12+
│ │ ├──export
13+
│ │ ├──filemanager
14+
│ │ ├──import
15+
│ │ └── themes
16+
│ ├── cache
17+
│ ├── classes
18+
│ ├── config
19+
│ ├── controllers
20+
│ │ ├── admin
21+
│ │ └── front
22+
│ ├── Core
23+
│ ├── css
24+
│ ├── docs
25+
│ ├── download
26+
│ ├── img
27+
│ ├── install
28+
│ ├── js
29+
│ │ └── jquery
30+
│ ├── localization
31+
│ ├── log
32+
│ ├── mails
33+
│ ├── modules
34+
│ ├── override
35+
│ │ ├── classes
36+
│ │ ├── controllers
37+
│ │ │ ├── admin
38+
│ │ │ └── front
39+
│ │ └── modules
40+
│ ├── pdf
41+
│ ├── themes
42+
│ ├── tools
43+
│ ├── translations
44+
│ ├── upload
45+
│ └── webservice
4546
:::
4647

4748

4849
## Folder reference
4950

5051
### /Adapter
51-
Contains the default adapter classes providing an interface to interact with Db, entity, hooks used in QloApps, and much more.
52+
Contains the default adapter classes providing an interface to interact with Db, entity, hooks used in QloApps, and much more.
5253

5354
### /admin
5455

55-
The admin directory contains the main endpoint to access the Back Office. When accessing this folder with your browser, you will be asked for your employee credentials.
56-
This directory is renamed automatically when you install it from a ZIP package and access it for the first time.
56+
The admin directory contains the main endpoint to access back office. When accessing this folder with your browser, you will be asked for your employee credentials.
57+
This directory is renamed automatically when you install it from a ZIP package and access it for the first time.
5758

5859
It contains the following subdirectories:
5960

6061
- `/autoupgrade`: scratch directory for the 1-click upgrade module
61-
- `/backups`: contains database backups generated from the back-office
62+
- `/backups`: contains database backups generated from the back office
6263
- `/export`: contains data export files
63-
- `/filemanager`: sources for the back-office file manager
64+
- `/filemanager`: sources for the back office file manager
6465
- `/import`: contains data import files
65-
- `/themes`: contains the templates for two back-office themes, default and new-theme
66+
- `/themes`: contains templates for back office theme **default**
6667

6768

6869
### /cache
6970

70-
Contains temporary cache files. No longer used by QloApps but kept for backward compatibility.
71+
Contains temporary cache files.
7172

7273
### /classes
73-
Contains all the legacy classes, including:
74+
Contains all the classes, including:
7475

7576
- Object models
7677
- Utility classes (like Db, Helper, Tools…)
7778
- Base controllers (like FrontController, AdminController…)
7879

79-
8080
### /config
8181

8282
Contains bootstrapping and configuration files. Unless asked, you should never edit them, as they are directly handled by QloApps’ installer and back office.
8383

8484
### /controllers
85-
It Contains controllers – as in MVC (Model-View-Controller), the software architecture used by QloApps. Each file controls a specific part of QloApps.
85+
It contains controllers – as in MVC (Model-View-Controller), the software architecture used by QloApps. Each file controls a specific part of QloApps.
8686

87-
- `/admin`: contains legacy controllers for the Back Office
88-
- `/front`: contains controllers for the Front Office
87+
- `/admin`: contains controllers for the back office
88+
- `/front`: contains controllers for the front office
8989

9090
### /Core
91-
This folder contains a new architecture design to provide easier modularity to code and unit testing.
91+
This folder contains a new architecture design to provide easier modularity to code and unit testing.
9292

9393
### /css
9494
This folder used to contain style sheets for jquery plugins, now those files are moved to the /js/jquery directory.
@@ -98,7 +98,7 @@ Contains documentation files, licenses, sample import files, and more.
9898

9999
### /download
100100

101-
Contains files that can be downloaded by the customers. Files are stored with an md5 filename.
101+
Contains files that can be downloaded by customers. Files are stored with an md5 filename.
102102

103103
### /img
104104

@@ -109,7 +109,7 @@ Contains all of QloApps’ default images, icons and, picture files – which do
109109
- `/cms`: CMS pictures
110110
- `/co`: Attributes (colors) pictures
111111
- `/flags`: Country & language flags
112-
- `/genders`: Gender (Shop Parameters > Customers > Client titles) pictures
112+
- `/genders`: Genders (Customers > Titles) pictures
113113
- `/jquery`-ui: jQuery UI images
114114
- `/l`: Language pictures
115115
- `/os`: Order state pictures
@@ -134,17 +134,17 @@ This is where you can find the jQuery framework.
134134
Contains all of QloApps localization packs — that is, files that contain local information such as default currencies and languages, tax rules and tax rule groups, states used in each country.
135135

136136
### /log
137-
This directory contains exception logs generated in QloApps
137+
This directory contains exception logs generated by QloApps.
138138

139139
### /mails
140140

141-
Contains all HTML and text templates for e-mails sent by QloApps. Every language has its specific folder, where you can manually change the content. QloApps contains a tool to edit your e-mails, located in the back office, in the Localization > translations page.
141+
Contains all HTML and text templates for e-mails sent by QloApps. Every language has its specific folder, where you can manually change the content. QloApps contains a tool to edit your e-mails, located in the back office, in the **Localization > Translations** page.
142142

143143
### /modules
144-
Contains all of the QloApps modules, each in its folder.
144+
Contains all of the QloApps modules, each in its own folder.
145145

146146
### /override
147-
This directory contains the overridden classes. The overriding is done through modules or manually to change the behavior of legacy classes without actually changing them.
147+
This directory contains the overridden classes. The overriding is done through modules or manually to change the behavior of core classes without actually changing them.
148148

149149
### /pdf
150150

@@ -154,17 +154,16 @@ Contains all the template files (.tpl) related to PDF file generation (invoice,
154154

155155
It contains all the themes that you have installed. Each theme will be in its specific folder.
156156

157-
158157
### /tools
159-
This directory contains all the 3rd party library used in QloApps.
158+
This directory contains all the 3rd party libraries used in QloApps.
160159

161160
### /translations
162161

163-
Contains zip packages that you downloaded for the translation packs.
162+
Contains zip packages that you downloaded for translation packs.
164163

165164
### /upload
166-
This directory contains the files uploaded by the customer through the contact page or customizations.
165+
This directory contains files uploaded by the customer through the contact page or customizations.
167166

168167
### /webservice
169168

170-
Provides the Webservice API's main Endpoint.
169+
Provides the Webservice API's main endpoint.

docs/architecture/technical.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
- **View End**: HTML, CSS, JS
55
- **Language Used**: PHP
66
- **Database**: MySQL, XML
7-
- **Template Engine**: SMARTY
7+
- **Template Engine**: Smarty
88
- **Technology**: JavaQuery, SASS, Bootstrap
99

1010

11-
## MVC (Model–view–controller)
11+
## MVC (Model–View–Controller)
1212
[MVC](https://en.wikipedia.org/wiki/Model%E2%80%93view%E2%80%93controller) is a software design pattern containing three main logical components.
1313

1414
Each of these parts is worked to deal with explicit advancement parts of an application. MVC is one of the most habitually utilized industry-standard web improvement systems to make adaptable and extensible systems.
@@ -23,6 +23,6 @@ The View part is utilized for all the UI logics of the application. For instance
2323

2424
### Controller
2525

26-
Controllers go about as an interface among Model and View segments to handle all the business logics and approaching solicitations, control data utilizing the Model segment and cooperate with the Views to deliver the last yield.
26+
Controllers go about as an interface between Model and View segments to handle all the business logics and approaching solicitations, control data utilizing the Model segment and cooperate with the Views to deliver the last yield.
2727

2828
For instance, the Customer controller will deal with all the cooperations and contributions from the Customer View and update the database utilizing the Customer Model. A similar controller will be utilized to see the Customer data.
Loading

docs/contribute/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Again we are using the Github PR system to take the bug fixings.
3232

3333
### Optimization
3434

35-
If you have an idea to make the system more optimized and you can make the system work better then its time to make a pull request at the QloApps Github repository.
35+
If you have an idea to make the system more optimized and you can make the system work better then its time to make a pull request at the [QloApps Github repository](https://github.com/webkul/hotelcommerce).
3636

3737
The better-written code the better is the software performance.
3838

@@ -55,7 +55,7 @@ Every release goes through a process of quality analysis before reaching you. Bu
5555

5656
So we need you to report any bug you find in the system to our QA Team. Our team will check the bug and find the best possible solution to resolve it.
5757

58-
You can report a bug either on our Github repository or on our [Forum](http://forums.qloapps.com/).
58+
You can report a bug either on our [Github repository](https://github.com/webkul/hotelcommerce) or on our [Forum](http://forums.qloapps.com/).
5959

6060
### Implementing Testing Tools
6161

0 commit comments

Comments
 (0)