Skip to content

Client Folder Structure

Robert Polak edited this page Jul 30, 2019 · 24 revisions

Home / Developer / Folder Structure

PxStat Application Client Side folders and code files list, includes configuration and examples.

The Root folder contains all files and folders that are needed to display an application on screen. They can be broken down to the following main files and folders:

root/

  • css
  • entity
  • js
  • template
  • config.json
  • config.json.live
  • config.json.test
  • config.json.uat
  • index.html
  • index.js
  • web.config

index.html

This is the entry page for the application. The file contains all necessary CSS and JavaScript resources as well as the HTML structure to display the Client Side of the Application.

index.js

This is required by the /index.html and it loads the following from the JQuery $(document).ready:.

  • Navigation Menu
  • Header
  • Footer
  • Spinner, Modals, alerts etc,
  • Default /entity/data
// Default entity on page load is the Data Page
  api.content.goTo("entity/data/", "#nav-link-data");

config.json

Contains default configuration parameters and constants.

Example:

  • Default System Language: language.iso.code
"language": {
		"iso": {
			"code": "en",
			"value": "English"
		}
	},
  • Default Date Display: mask.datatime.display
"mask": {
		"datatime": {
			"ajax": "YYYY-MM-DDTHH:mm:ss",
			"display": "DD/MM/YYYY HH:mm:ss",
			"file": "YYYYMMDDTHHMMss",
			"dateRangePicker": "DD/MM/YYYY HH:mm"
		}	
	},

Each Deployment environment have specific config.json file:

  • config.json.live
  • config.json.td
  • config.json.uat

Template Folder

The template folder /template contains code for the headers, footers, navigation, spinners and modals to be used by the application with the following structure.

  • template/css
  • template/css/navigation.css
  • template/css/footer.css
  • template/css/header.css
  • template/js
  • template/js/navigation.library.js
  • template/js/entity.js
  • template/js/footer.js
  • template/js/header.js
  • template/js/navigation.js
  • template/footer.html
  • template/header.html
  • template/modal.group.html
  • template/modal.html
  • template/modal.user.html
  • template/navigation.html
  • template/spiner.html

CSS

The template folder /CSS contains CSS styling definitions for the Application and specific java script libraries.

  • css/app.bootstrap.guideline.css
  • css/app.bootstrap.override.css
  • css/app.library.css
  • css/app.media.css
  • css/app.prism.css
  • css/app.prism.override.css
  • css/app.xbbcode.css

js

The template folder /js contains code for Specific Application and 3rd Party libraries.

  • js/app.bootstable.js
  • js/app.config.js
  • js/app.constant.js
  • js/app.global.js
  • js/app.library.group.js
  • js/app.library.js
  • js/app.library.user.js
  • js/app.mindmup.editabletable.js
  • js/app.plugin.js
  • js/app.prism.js
  • js/app.twbs-pagination.min.js
  • js/app.xbbcode.js

Entity

The entity folder /entity contains code for the different entities that make up the Applications.

  • entity/build
  • entity/configuration
  • entity/data
  • entity/developer
  • entity/keyword
  • entity/manage
  • entity/release
  • entity/upload
Clone this wiki locally