This Confectionery app represents a simple app built for a confectionery store with a backend powered by Priority.
This demo app is built almost entirely with Priority Ionic library and includes only a small amount of original code.
It serves as a perfect starting point for learning Priority Ionic and building your own app.
- Clone this repository:
Run git clone https://github.com/PrioritySoftware/priority-ionic.git
- Install dependencies:
Run npm install
from the project root.
- Install the Ionic CLi
Run npm install -g ionic
.
- Update configuration with your Priority settings:
In ionic.config.json
update the proxyUrl
to the URL of the Priority WCF service.
"proxies": [
{
...
"proxyUrl": "https://priority_path_to_wcf_service/wcf",
...
}]
In app.component.ts
update the tabula.ini, company, username and password settings.
window['priorityReady'] = () => {
configService.config({
url: '',
tabulaini: 'your_tabula.ini',
language: 3,
company: 'your_company',
appname: '',
devicename: ''
});
configService.logIn('your_username','your_password').then(() =>
{
this.nav.setRoot(TabsPage);
},(err) => {alert(err);});
}
- Run the app:
Run ionic serve
from the project root.